Script for scraping mydealz website and comparing deals with sold items on ebay to evaluate if there is possible profit to be made.
Step 1: Add OpenAI API Key (GPT-3 is used to extract to real product name from the deal title) and Discord Webhook in .env file.
WEBHOOK_URL=<discord-webhook-url>
OPENAI_API_KEY=<openai-api-key>
Step 2: Run main.py.
Step 3: Send a POST request to http://127.0.0.1:5000/config with a JSON body in this format:
{
"pages": 4, # number of pages to be scraped
"subpage": "new", # new or hot is possible
"voucher": false, # if the bot should pickup vouchers or only deals
"min_price": 0,
"max_price": 1000000,
"keywords": ["add", "keywords", "in", "array"],
"blacklist": ["add", "blacklisted", "keywords", "in", "array"]
}
The script then starts automatically!
Disclaimer This script was made for educational/experimental purposes only and the use or spam of this may violates mydealz or ebays TOS.