Spaces:
Sleeping
Sleeping
Download scripts/ingest_espn_stats.py from otito254/epl-predictor-api: direct link, hf CLI and curl.
- Browser
- Download file 447 Bytes
-
https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/scripts/ingest_espn_stats.py
- Command line
-
hf download hf://spaces/otito254/epl-predictor-api/scripts/ingest_espn_stats.py
-
curl -L -o ingest_espn_stats.py https://huggingface.co/spaces/otito254/epl-predictor-api/resolve/main/scripts/ingest_espn_stats.py
447 Bytes
| import sys, os | |
| sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__)))) | |
| from app.services.espn_service import ingest_possession_season | |
| import logging | |
| logging.basicConfig(level=logging.INFO) | |
| if __name__ == "__main__": | |
| # Start with just 2024 to verify it works, then backfill | |
| for year in [2024, 2023, 2022, 2021, 2020, 2019]: | |
| ingest_possession_season(year) | |
| print("✅ ESPN possession ingestion complete") |