This script facilitates automated order placement at a specific time using the TGTG platform. It combines the functionality of TGTG Client for order processing and email-based triggers for execution initiation. Using py-adyen payment encryption.
- Environment Setup: Initialize required environment variables for payment card details (refer to
.env.example
). - Install requirements: Install the requirements running
pip install -r requirements.txt
. - Script Execution: Run
main.py
. - Email Verification: Enter your email address. You'll receive a verification link. Click the link to authenticate the client.
- Product Selection: The script fetches your favorited products from TGTG. Choose the product you want to automate.
- Time Configuration: Specify the exact time for the script to execute the purchase.
- Order Automation: The script will automatically place the order for the selected product at the set time.
main.py
: Entry point of the script. Callsplace_order_at_time
fromfunctions.py
.functions.py
: Contains two functions:ask_for_time
andplace_order_at_time
. The former prompts the user to specify the time for order placement, and the latter automates the order placement process using the TGTG Client.
- Time-based Order Placement (
functions.py
):ask_for_time
: Prompts the user to enter the time for placing the order.place_order_at_time
: Automates the order placement process at the specified time. It logs into the TGTG Client, retrieves the user's favorite items, allows the user to select an item, and places the order at the specified time.
- Python 3.x
- A valid TGTG account and email account credentials.
- Environment variables for card details (
CARD_NUMBER
,CVV
,MONTH
,YEAR
). (see.env.example
)
- The script is designed for educational purposes and should be used responsibly.