This Telegram Bot monitors the Kleinanzeigen website for new listings that match user-defined search terms and time intervals. The bot utilizes the Telegram API to notify users immediately when new offers are found.
- Monitoring: The bot continuously scans Kleinanzeigen for specific search keywords.
- Notifications: Users receive automatic updates via Telegram whenever a new listing is found.
- Customization: Users can define search terms and polling intervals according to their preferences.
-
Prerequisites:
- Python 3.6 or newer
- Required libraries:
telegram,beautifulsoup4,multiprocessing,threading,asyncio.
-
Bot Token:
- Create a new bot via BotFather on Telegram and copy the Bot Token.
-
Configuration:
- Replace
BOT_TOKENin the main file with your personal Bot Token.
- Replace
-
Install Dependencies:
- Run
pip install -r requirements.txtto install the necessary libraries.
- Run
- Start Bot: Run
python telegram_bot.py. - Start Worker: Send
/startworkerin the chat to begin monitoring. - Set Search Term: Follow the instructions in the chat to define search terms and intervals.
- Stop Worker: Send
/stopworkerto stop monitoring. - List Workers: Send
/listworkerto view active monitoring tasks.
- Error Handling: The bot includes a reliable error handling system.
- Logging: Comprehensive logging capabilities assist with troubleshooting and debugging.
This project is licensed under the MIT License. It is free for both private and commercial use.
Improvements and suggestions are always welcome. Please submit pull requests or report issues in the GitHub repository.
This bot is not affiliated with the official Kleinanzeigen website and is intended for educational purposes only.