Spaces:
Sleeping
Sleeping
Download scripts/ingest_player_minutes.py from otito254/epl-predictor-api: direct link, hf CLI and curl.
- Browser
- Download file 345 Bytes
-
https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/scripts/ingest_player_minutes.py
- Command line
-
hf download hf://spaces/otito254/epl-predictor-api/scripts/ingest_player_minutes.py
-
curl -L -o ingest_player_minutes.py https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/scripts/ingest_player_minutes.py
345 Bytes
| import sys, os | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from app.services.understat_player_service import ingest_all_player_minutes | |
| import logging | |
| logging.basicConfig(level=logging.INFO) | |
| if __name__ == "__main__": | |
| ingest_all_player_minutes() | |
| print("✅ All player minutes ingested from Understat") |