14 lines
528 B
Python
14 lines
528 B
Python
import urllib.request
|
|
import json
|
|
|
|
url = "https://libretto.mmcinet.eu/canti/api/v3/get_all_app_tables?uuid=pwa-cc-uuid&email=&platform=browser&version=1.0&gruppo=123456&all_song=false"
|
|
req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"})
|
|
print("Fetching...")
|
|
with urllib.request.urlopen(req) as res:
|
|
data = json.loads(res.read().decode("utf-8"))
|
|
|
|
settings = data.get("canti_settings", {}).get("data", [])
|
|
print(f"Total settings: {len(settings)}")
|
|
for s in settings[:10]:
|
|
print(s)
|