How novaoc/rarebox-price-history works
This repository builds and publishes daily TCGplayer price histories as per-set JSON for seven trading-card games. The workflow maps TCGplayer groups and products to each game’s card/set identifiers, ingests dated price archives, then appends and compacts price points in the static data files consumed by Rarebox. The mapping and ingestion scripts share path, HTTP, normalization, and JSON helpers. Source excerpts show the scripts’ calls and storage behavior; README statements establish the static serving and consumer relationship.
Main entry points: build_maps.py Build join maps · ingest.py Ingest price archives · common.py Shared utilities · maps Set and product maps
Components 10
Catalog mapping
- Build join maps
scripts/build_maps.py - Shared utilities
scripts/common.py - Set and product maps
maps
Price ingestion
- Ingest price archives
scripts/ingest.py
Price datasets
Other components
- Rarebox app
- TCGCSV
- Game card APIs
- Daily price archives
- Raw GitHub hosting
Connections 10
- Build join maps → Shared utilities: uses helpers
scripts/build_maps.py - Ingest price archives → Shared utilities: uses helpers
scripts/ingest.py - Build join maps → TCGCSV: fetches catalogs
scripts/build_maps.py - Build join maps → Game card APIs: fetches set indexes
scripts/build_maps.py - Build join maps → Set and product maps: writes maps
scripts/build_maps.py - Ingest price archives → Set and product maps: reads maps
scripts/ingest.py - Ingest price archives → Daily price archives: downloads prices
scripts/ingest.py - Ingest price archives → Per-set price history: appends histories
scripts/ingest.py - Rarebox app → Raw GitHub hosting: fetches JSON
README.md - Raw GitHub hosting → Per-set price history: serves static files
README.md