Unofficial TooGoodTooGo API. Login, fetch your favorites, refresh your access tokens.
The api, located at py-tgtg/api.py expects a config file. Grab a copy of config.json.defaults and enter your email address and, optionally, your location and user-agent of choice.
A very rudimentary favorites watcher, written as a proof of concept. Read its source py-tgtg/watcher.py to understand how to use the API. It expects a config file named config.json in its working directory.
Polished Telegram bot. Supports multiple users, can work in group chats, auto-refreshes tokens, can be fully controlled from Telegram.
It requires that you provide your bot's token as an environnement variable (TGTG_TELEGRAM_TOKEN).
- Set your email address with
/set_email, then login with/login - Target specific stores from you favorites with
/add_target [store_url]. Make sure to disable web previews in your messages. - Watch for available magic bags with
/watch [watch_interval] - Plenty of other commands are available too.