A dumb data analysis of my Too Good to Go history
- Python 100%
| .gitignore | ||
| main.py | ||
| README.md | ||
| requirements.txt | ||
| tgtg_client.py | ||
TGTG Wrapped
Export your Too Good To Go pickup history as a GeoJSON map.
Setup
pip install -r requirements.txt
Usage
First-time login:
python main.py --email your@email.com
A browser window will open to enter your login PIN. Credentials are saved to tgtg_credentials.json for future runs.
Subsequent runs:
python main.py
Include full bag metadata (price, address, quantity, etc.):
python main.py --metadata
Custom output file:
python main.py --output my_history.geojson
Output
tgtg_history.geojson(default) — view on geojson.io or import into any GIS tool
Visualize the data
You can visualize your data here. Scroll to the bottom for the upload link.
Notes
tgtg_credentials.jsonstores your auth tokens locally — do not share or commit this file- Based on the unofficial TGTG API from Der-Henning/tgtg