mirror of
https://github.com/PhoenixTwoFive/karaoqueue.git
synced 2025-05-19 19:11:49 +02:00
13 lines
333 B
Python
13 lines
333 B
Python
import requests
|
|
from bs4 import BeautifulSoup
|
|
|
|
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='CSV')[0]['href']
|
|
return url
|
|
|
|
def get_songs(url):
|
|
r = requests.get(url)
|
|
return r.text
|