This script monitors product prices on AliExpress (for now...) and sends notifications via Telegram and WhatsApp. It uses Selenium to scrape product prices from specified URLs and compares them against predefined alert prices. If a product's price falls below the alert price, a message is sent via WhatsApp using the pywhatkit library. Telegram messages containing the current prices of all products are sent periodically.
- Python 3.9+
-
Clone the Repository
git clone git@github.com:JFBatista023/wishlist_automation.git cd wishlist_automation
-
Create a Virtual Environment
python -m venv venv
-
Activate the Virtual Environment
-
On Windows:
.\venv\Scripts\activate
-
On macOS and Linux:
source venv/bin/activate
-
-
Install Dependencies
pip install -r requirements.txt
-
Setup Environment Variables
-
Create a
.env
file in the root directory of the project. -
Copy the contents of
.env-example
to.env
.cp .env-example .env
-
Fill in your details in the
.env
file:TELEGRAM_BOT_TOKEN=your_telegram_bot_token TELEGRAM_CHAT_ID=your_telegram_chat_id WHATSAPP_NUMBER=your_whatsapp_number
-
- Create a new bot on Telegram by talking to the BotFather.
- Get the bot token from the BotFather and add it to your
.env
file asTELEGRAM_BOT_TOKEN
. - Get your chat ID by starting a chat with your bot.
To run the script, simply execute the following command:
python main.py