This commit is contained in:
Lennart J. Kurzweg (Nx2)
2024-08-16 19:28:51 +02:00
commit 9d75757fec
20 changed files with 287594 additions and 0 deletions

15
get_data/get-events.py Normal file
View File

@@ -0,0 +1,15 @@
import subprocess
import json
with open("./sports.json", "r") as f:
sports = json.load(f)
ret = {}
for sport in sports:
stdout = subprocess.check_output(f'./get-events.sh {sport}', shell=True)
events = json.loads(stdout)
ret[sport] = events
with open("./events.json", "w") as f:
json.dump(ret, f, indent=4, ensure_ascii=False, sort_keys=True)