Download scripts/update.sh from RaceMX/race-mx-open-data: direct link, hf CLI and curl.
- Browser
- Download file 438 Bytes
-
https://huggingface.co/datasets/RaceMX/race-mx-open-data/resolve/main/scripts/update.sh
- Command line
-
hf download hf://datasets/RaceMX/race-mx-open-data/scripts/update.sh
-
curl -L -o update.sh https://huggingface.co/datasets/RaceMX/race-mx-open-data/resolve/main/scripts/update.sh
438 Bytes
| # Refresh the snapshot from race.mx and rebuild the CSVs. Run from the repo root. | |
| set -e | |
| cd "$(dirname "$0")/.." | |
| for f in data/calendar.json data/venues.json data/winners.json data/winners-history.json data/winners-history.csv; do | |
| curl -sfL "https://race.mx/$f" -o "$f" | |
| done | |
| curl -sfL "https://race.mx/race-calendar.ics" -o data/race-calendar.ics | |
| python3 scripts/to_csv.py | |
| echo "Snapshot updated: $(date -u +%Y-%m-%dT%H:%MZ)" | |