MarketSentry is a Telegram bot designed to help users track the prices and availability of products on MediaMarkt. Using Playwright for web scraping and MongoDB for data storage, MarketSentry offers real-time notifications and price comparison to ensure you never miss a deal.
- Product Search: Search for products directly through the Telegram bot.
- Price Tracking: Automatically monitors prices and stock availability.
- Real-Time Notifications: Receive updates when there are changes in price or stock status.
- User-Specific Tracking: Track products based on individual user preferences.
- Node.js
- MongoDB
- Playwright
- Telegram Bot API
- Node.js installed
- MongoDB account and database
- Telegram bot token
- Clone the repository:
git clone <repository-url>
- Install Yarn packages:
yarn install
- Create a
.env
file in the root directory and add the following environment variables:TELEGRAM_BOT_TOKEN=<your-telegram-bot-token> MONGODB_URI=<your-mongodb-uri>
- Build the project:
yarn build
- Start the bot:
yarn start
- Here are the commands you can use to interact with the bot:
/start - Start the bot
/monitor - Start monitoring products
/end - Stop monitoring products
/add [product name] - Add product to monitor
/remove [product name] - Remove product from monitor
/list - List products being monitored
/help - Show help message