mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 19:11:49 +02:00
parent
dc03dab0ce
commit
a8871c1106
@ -14,7 +14,7 @@ def create_data_directory():
|
|||||||
def get_catalog_url():
|
def get_catalog_url():
|
||||||
r = requests.get('https://www.karafun.de/karaoke-song-list.html')
|
r = requests.get('https://www.karafun.de/karaoke-song-list.html')
|
||||||
soup = BeautifulSoup(r.content, 'html.parser')
|
soup = BeautifulSoup(r.content, 'html.parser')
|
||||||
url = soup.findAll('a', href=True, text='CSV')[0]['href']
|
url = soup.findAll('a', href=True, text='Available in CSV format')[0]['href']
|
||||||
return url
|
return url
|
||||||
|
|
||||||
def get_songs(url):
|
def get_songs(url):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user