This bot monitors a specific website for new apartment listings and sends notifications via Telegram when new listings are found.
- Checks for new apartment listings every 5 minutes
- Sends notifications via Telegram
- Maintains a history of seen listings to avoid duplicates
- Runs automatically using GitHub Actions
-
Fork this repository
-
Set up your Telegram bot:
- Create a new bot using @BotFather on Telegram
- Save the bot token
- Start a chat with your bot
- Get your chat ID by sending a message to @userinfobot
-
Add repository secrets:
- Go to your repository's Settings > Secrets and variables > Actions
- Add two new secrets:
BOT_TOKEN: Your Telegram bot tokenCHAT_ID: Your Telegram chat ID
-
The GitHub Action will automatically start running every 5 minutes
To run the script locally:
- Clone the repository
- Create a virtual environment:
python -m venv venv source venv/bin/activate # On Windows: venv\Scripts\activate
- Install dependencies:
pip install -r requirements.txt
- Create a
.envfile with your credentials:BOT_TOKEN=your_bot_token_here CHAT_ID=your_chat_id_here - Run the script:
python check_listings.py
MIT