This is a bot that scrapes new entries on WG Gesucht and sends notifications via Telegram when there is a new entry. It helps you stay updated on new listings for any search query you want. It is able to serve mutliple users that can subscribe to different search queries.
To use this bot, follow these steps:
git clone https://github.com/JeremieSiller/kleinanzeigen_bot.git
poetry install
.env
file in the root directory and add the following variables:
TELEGRAM_TOKEN=your_telegram_bot_token # check step 5
IDS_FILE_NAME=ids.db
LINK_FILE_NAME=links.db
ids.db
and links.db
in the root directory:
touch ids.db
touch links.db
.env
file under TELEGRAM_TOKEN
.poetry run python main.py
/start
to your bot and it will start scraping the urls you provided and send you a message with the new listings./start
command.Alternatively, you can use Docker to run the bot:
docker build -t telegram-scraper .
docker run telegram-scraper
This project is licensed under the MIT License.
This project was created as a learning experience and is not intended for production use. It is not affiliated with Kleinanzeigen or WG Gesucht.