Updated Splatalogue scraper
The previous HTML ID used in the query had been changed since the last update to this function; instead of `sid`, the correct ID is now `speciesselectbox`.
@@ -51,7 +51,8 @@ def get_json_species_ids(outfile='splat-species.json'):
result = requests.get('https://www.cv.nrao.edu/php/splat/b.php')
page = bs4.BeautifulSoup(result.content, 'html5lib')
- sid = page.findAll('select', attrs={'id': 'sid'})[0]
+ # The ID needs to be checked periodically if Splatalogue is updated
+ sid = page.findAll('select', attrs={'id': 'speciesselectbox'})[0]
species_types = set()
for kid in sid.children:
