This Python script monitors the Too Good To Go platform for changes in the availability of your favorite items and sends notifications to a Discord webhook when these items are restocked.
Before using this script, you will need:
- Required Python packages:
tgtg
,discord_webhook
. You can install them usingpip
.
-
Clone this repository or download the script to your local machine.
-
Install the required Python packages using the following command:
pip install tgtg datetime discord-webhook
-
Set discord_hook_url
-
If you are logging in for the first time uncomment these lines to retrieve your tgtg credentials:
# client = TgtgClient(email="your_email@example.com") # credentials = client.get_credentials() # print(credentials)
-
If set up correctly the script will start monitoring your favourite bags in the interval defined by 'CHECK_INTERVAL'.