Spaces:
No application file
No application file
Download src/sim_match_analysis/data/match.py from metasoccer/collab: direct link, hf CLI and curl.
- Browser
- Download file 171 Bytes
-
https://huggingface.co/spaces/metasoccer/collab/resolve/main/src/sim_match_analysis/data/match.py
- Command line
-
hf download hf://spaces/metasoccer/collab/src/sim_match_analysis/data/match.py
-
curl -L -o match.py https://huggingface.co/spaces/metasoccer/collab/resolve/main/src/sim_match_analysis/data/match.py
171 Bytes
| import requests | |
| def get_match(match_id): | |
| url = f"https://mourinho.backend.metasoccer.com:4101/match/{match_id}" | |
| response = requests.get(url) | |
| return response.json() |