Fix parsing of songlist download page for CSV file link

This commit is contained in:
2022-04-07 21:32:11 +02:00
parent 99c7917573
commit 90fe901679

View File

@ -18,7 +18,7 @@ def create_data_directory():
def get_catalog_url():
r = requests.get('https://www.karafun.de/karaoke-song-list.html')
soup = BeautifulSoup(r.content, 'html.parser')
url = soup.findAll('a', href=True, text='Available in CSV format')[0]['href']
url = soup.findAll('a', href=True, text='Verfügbar in CSV-Format')[0]['href']
return url
def get_songs(url):