A dumb data analysis of my Too Good to Go history
Find a file
2026-02-22 05:38:11 +01:00
.gitignore initial commit 2026-02-22 05:38:11 +01:00
main.py initial commit 2026-02-22 05:38:11 +01:00
README.md initial commit 2026-02-22 05:38:11 +01:00
requirements.txt initial commit 2026-02-22 05:38:11 +01:00
tgtg_client.py initial commit 2026-02-22 05:38:11 +01:00

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.json stores your auth tokens locally — do not share or commit this file
  • Based on the unofficial TGTG API from Der-Henning/tgtg