wgbot
wgbot copied to clipboard
A bot that monitors wg-gesucht.de for new flat offers and automatically writes to the landlords
WG Bot
This script aims to make life easier for people looking for homes in Germany. Specifically, it automates the search for houses and rooms on the wg-gesucht.de website and contacts the landlord privately.
This is a deeply modified version of immo. Rewritten to work with the latest versions of Python and the site itself.
Requirements
-
Python 3
(tested only on Python 3.10)- pip
- venv
-
chromedriver
(default location is/usr/bin/chromedriver
setted onwg_submit.py
)- For Ubuntu you can follow this guide to install it.
- After installing it, check the path with
which chromedriver
, if it does not match the default one, change it in the filewg_submit.py
- If you want, you can change the Selenium configuration to replace Chrome with another browser. In this case, you will not need chromedriver
Create the environment
- Clone the repository with
git clone https://github.com/AlessandroGrassi99/wgbot.git
- Make sure you are in the root of the repository folder (inside the
wgbot
folder) - Edit
config.toml
with your data- Copy and replace the URL of your wg-gesucht.de filters into
config.toml
- Copy and replace the URL of your wg-gesucht.de filters into
- Create Python virtual environment with
python -m venv venv
- Activate python's virtual environment with
source venv/bin/activate
- Install dependencies with
pip install -r requirements.txt
Run
- Activate python's virtual environment with
source venv/bin/activate
- Run
python wg_bot.py
Tips and troubleshooting
- Use the filters with the English version of the site, they must be in the format
https://www.wg-gesucht.de/en/
, with/en/
at the end - Currently Selenium and other dependencies have some problems on macOS systems. Unfortunately, these are not problems that depend directly on the script; I recommend using a VM with Ubuntu.
- I suggest you to check the README file of the original project, there might be interesting insights there