This is a collection of three bots that I have used to search for (shared) flats in Munich. The bots are inspired by immobot. The pipeline is designed to work on a headless Linux system with a Chrome browser and a Gmail account. Of course, it can be adapted to other platforms, browsers, and email providers.
- Install the requirements with
pip install -r requirements.txt
- Install Chromedriver as described by immobot
- Install X virtual frame buffer with
sudo apt install xvfb
to run headless - Create a Gmail account and get a password for third-party apps as shown here
This bot checks the platform wg-gesucht.de every 60 seconds for new rooms. If a new offer has been found, it sends you a notification email. This allows you to write customized texts, which is recommended for shared flats. The bot is approximately 15 minutes faster than the built-in notification system.
- Enter the URL of your search query in
wg-gesucht-spider.py
- Enter your Gmail address and password in
run_bot.sh
- Run the bot with
./wgzimmerbot/run_bot.sh
This bot checks the platform wg-gesucht.de every 60 seconds for new flats. If a new offer has been found, it sends you a notification email and contacts the offer directly with a prespecified message. A placeholder for the name of the contact person can be used to personalize the message. Further, the bot allows for attaching a "Gesuch", which contains more information about yourself. This is recommended for flats, as it allows you to stand out from the crowd.
- Enter the URL of your search query in
wg-gesucht-spider.py
- Enter the prespecified message you want to send in
message.txt
(you can use the placeholderNAME
for the name of the contact person followed by a colon) - Enter your Gmail address and password in
run_bot.sh
- Enter your wg-gesucht.de username and password in
run_bot.sh
- Run the bot with
./wgwohnungsbot/run_bot.sh
This bot checks the website of Wochenanzeiger every five minutes for new offers. If new offers are found, it sends you a notification email with the descriptions along with a link to the website. This is helpful, as the website does not have a notification system.
- Enter your Gmail address and password in
run_bot.sh
- Run the bot with
./wochenanzeigerbot/run_bot.sh