Skip to content

Commit 9f0c9ed

Browse files
committed
update the splatalogue chemical species name list & the tool for
updating it. This should be run regularly...
1 parent 0ad0ec8 commit 9f0c9ed

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

astroquery/splatalogue/build_species_table.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def get_json_species_ids(outfile='species.json'):
2222
import bs4
2323

2424
result = requests.get('http://www.cv.nrao.edu/php/splat/b.php')
25-
page = bs4.BeautifulSoup(result.content)
25+
page = bs4.BeautifulSoup(result.content, 'html5lib')
2626
sid = page.findAll('select', attrs={'id': 'sid'})[0]
2727

2828
species_types = set()
@@ -40,3 +40,6 @@ def get_json_species_ids(outfile='species.json'):
4040
json.dump(species, f)
4141

4242
return json.dumps(species)
43+
44+
if __name__ == "__main__":
45+
get_json_species_ids()

0 commit comments

Comments
 (0)