This is a Python-based price tracking bot that monitors product prices across various e-commerce websites and sends alerts via Discord when a price drop is detected.
- Scrapes product prices from e-commerce websites.
- Stores and tracks prices over time using SQLite.
- Sends Discord notifications when a price drop is detected.
- Supports multiple product URLs.
- Handles JavaScript-rendered pages using Selenium.
- Modular design for easy expansion to new websites.
- Python 3.12+
- Google Chrome and ChromeDriver
- SQLite3
- Selenium
- WebDriver Manager
- Requests
- PyYAML
- Clone the repository:
git clone https://github.com/Sachinbisht27/price_track_discord_bot.git cd price_track_discord_bot
- Create and activate a virtual environment:
python -m venv venv source venv/bin/activate
- Install dependencies:
pip install -r requirements.txt
- Update
config.yaml
with product URLs and your Discord webhook.
- Initialize the database:
python3 main.py
- The bot will scrape prices and send alerts to Discord if a price drop is detected.
Edit config.yaml
to specify:
products:
- url: "https://www.amazon.in/example-product"
discord_webhook: "YOUR_DISCORD_WEBHOOK_URL"
- Ensure Chrome and ChromeDriver versions are compatible.
- If running on a server, use a headless browser mode.
- Check
prices.db
to verify stored price history.
MIT License
For issues or feature requests, open an issue on GitHub or contact Sachin Bisht.