A Telegram bot that helps users track prices of products on various websites. Users can add product URLs with a target price, and the bot will notify them when the product price drops below or matches the target price.
- Add Products: Track a product by providing its URL and your target price.
- List Products: View the products you are tracking along with their current and target prices.
- Remove Products: Stop tracking a product.
- Price Alerts: Get notified when a product's price meets or drops below your target.
- Python 3.8 or higher
- A Telegram bot token (create one via BotFather)
- SQLite database (automatically created)
-
Clone the repository:
git clone https://github.com/umutkayash/price-tracker.git cd price-tracker -
Install dependencies:
pip install -r requirements.txt
-
Set up your bot token:
- Replace
TOKEN HEREinmain.pywith your actual bot token.
- Replace
-
Initialize the database: The database will be automatically created when you run the bot.
Run the bot:
python main.py/start- Start the bot and view available commands./add <URL> <Target Price>- Add a new product to track./list- List all tracked products./remove- Remove a product from tracking.
- To track a product:
/add https://example.com/product 100.00 - To view tracked products:
/list
- Dependencies:
- Database: SQLite for storing user-tracked products.
- Concurrency: Asynchronous programming with
asynciofor handling updates and price checks.
- Support for additional e-commerce sites.
- Advanced price filtering and history tracking.
This project is licensed under the MIT License. See the LICENSE file for details.