An automated Telegram bot that monitors your email for new real estate listings and automatically sends a contact request.
- Monitors email for new notifications via IMAP.
- Extracts links to new listings.
- Uses Selenium (undetected-chromedriver) to open the listing.
- Automatically fills and sends a contact form.
- Sends status updates to Telegram.
-
Install Dependencies
pip install -r requirements.txt
-
Configuration
- Copy
.env.exampleto.env. - Fill in your details in
.env:EMAIL_USER: Your email address.EMAIL_PASS: Your email app password (not your regular password!).TG_BOT_TOKEN: Your Telegram Bot Token.TG_CHAT_ID: Your Telegram Chat ID.
- Copy
-
Run
python main.py
-
Clone the Repository
git clone https://github.com/Rusklass/ImmoMailBot.git cd ImmoMailBot -
Install Dependencies
pip3 install -r requirements.txt
-
Run the Bot
python3 main.py
-
Create macOS App (Executable) To create a standalone app that you can double-click:
pyinstaller --onefile --name ImmoBot --windowed main.py
- The app will be in the
distfolder. - Note: You might need to allow the app in "System Settings > Privacy & Security" if it's blocked.
- The app will be in the
This bot is for educational purposes. Automated interaction with websites may violate their Terms of Service. Use at your own risk.