Last active
May 18, 2020 10:36
-
-
Save alt-romes/bb366d1a9c46e89874744364fbbfe4d8 to your computer and use it in GitHub Desktop.
Get all music genres from everynoise.com and create insert commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import requests | |
everynoisetext = requests.get('http://everynoise.com/everynoise1d.cgi?scope=all').text | |
import re | |
allgenres = re.findall(r'style="color: #.*?>(.*?)<', everynoisetext) | |
for genre in allgenres: | |
print ('insert into MusicGenres values ("{}");'.format(genre)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment