-
-
Notifications
You must be signed in to change notification settings - Fork 408
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IRSA_ibe list_mission
method not working due to an HTML parsing error of some kind.
#1423
Comments
Upon further experimentation, the problem appears to be the use of
produces non-trivial results. The nice thing about doing it this way is that if the string doesn't end in |
This issue is real, and fixable: root = BeautifulSoup(response.text, 'html5')
links = root.findAll('a')
splitattrs = [a.attrs['href'].split("/") for a in links]
missions = [entry[entry.index('search')+1] for entry in splitattrs] can get the mission list at least. I'll dig forward and see if you already implemented this... |
I'm confused, @keflavich . Did the old fix in #1424 stop working? |
Apparently that issue was... approved but not merged? It looks like I approved it, then you closed it? That change was never incorporated, though: |
Ah, I see. I can't reopen the old fix now, but it was exceedingly simple. It was a one line change, actually. Since I can't just reopen the old issue, I'll submit a new pull request. New pull request at: #1923 It's also possible that this was lost in the shuffle when discussing deleting unused code in pull request #1430 ? |
I'm trying to use the
ibe
module of astroquery. As a first step, I wanted to go through thelist_missions
,list_datasets
, andlist_tables
methods to get an idea for what has been implemented. When I call thelist_missions
method, though, I get nonsense.I've manually constructed the URL and checked in my browser and using astroquery's
BaseQuery._request
and can confirm that my system is recieving HTML of some kind, but there seems to be something going wrong in these lines of thelist_missions
method:astroquery/astroquery/ibe/core.py
Lines 277 to 279 in a1c4276
System information: Macbook Pro, MacOS X 10.14.4, using python 3.6 installed via MacPorts (version 3.6.8), astropy installed using the MacPorts package
py36-astropy
(version 3.1), astroquery installed using the MacPortspip-3.6
(pip version 19.0.3, astroquery version 0.3.9), and the Beautiful Soup is version 4.6.0 (looks like it was installed by pip). I have no idea what version of lxml I'm using nor what it was installed by.The text was updated successfully, but these errors were encountered: