Never miss a price drop again. A high-performance, asynchronous Telegram bot that monitors Amazon products and notifies you instantly when prices fall.
Click to Chat with Bot (@HAWKEYE_PRICEBOT)
- ⚡ Real-Time Tracking: Automatically checks prices every 30 minutes.
- 📉 Price Drop Alerts: Get notified with the exact price difference (e.g.,
Diff: -₹500.00). - 🛡️ Smart Validation: Automatically cleans URLs to store only canonical links (
/dp/ASIN). - 🚫 Duplicate Prevention: Prevents tracking the same product twice.
- 🚀 Scalable Architecture: Uses streaming database cursors to handle thousands of products without memory leaks.
- 📱 User-Friendly: Simple commands (
/start,/list,/stop_ID).
- Python 3.8 or higher.
- A Telegram Bot Token (get it from @BotFather).
-
Clone the repository
git clone https://github.com/yourusername/price-bot.git cd price-bot -
Install dependencies
pip install -r requirements.txt
-
Configure Environment Create a
.envfile in the root directory and add your token:TELEGRAM_TOKEN=your_telegram_bot_token_here
-
Run the Bot
python bot.py
Simply paste any Amazon product link into the chat:
User:
https://www.amazon.in/dp/B08L5TNJHGBot:
✅ Tracking Started! iPhone 13... Price: ₹49,999
Use the /list command to see all tracked items:
User:
/listBot:
🆔 1 | ₹49,999iPhone 13 (128GB).../stop_1
Click the command shown in the list or type it manually:
User:
/stop_1Bot:
🗑️ Item 1 deleted.
- Core: Python 3,
asyncio - Bot Framework:
python-telegram-bot - Database: SQLite (
aiosqlite) - Scraping:
curl_cffi(Impersonates Chrome to bypass bot detection),BeautifulSoup4
Contributions are welcome! Please feel free to submit a Pull Request.
- Fork the Project
- Create your Feature Branch (
git checkout -b feature/AmazingFeature) - Commit your Changes (
git commit -m 'Add some AmazingFeature') - Push to the Branch (
git push origin feature/AmazingFeature) - Open a Pull Request