yawgbot
Yet Another WG helper bot. WG stands for Wohngemeinschaft, a German word that refers to a living arrangement in which several tenants share an apartment. It is aimed to automate the extremely complex and time-consuming task of finding a room or an apartment to rent. Initially it was only working for wg-gesucht.de, now it's a plugin-based system ready to be extended for every platform to find accommodation.
yawgbot is a simple python bot that scrapes websites offering accommodation ads and contacts landlords. It uses a
SQLite database to save contacted ads and to perform fewer requests to platforms. It also offers a simple web UI to
track your progress and gather your findings across different platforms.
running manually
To run the bot manually:
- install the package with
pip3 install yawgbot(a virtual environment is suggested) - configure
.env.sampleand rename it to.env - create a new file named
bot.pywith the following content and run it:
from yawgbot import Bot
import logging
logging.basicConfig(level=logging.INFO)
bot = Bot(platfors=["wg-gesucht"])
bot.run()
running periodically with celery
Yawgbot uses Celery to schedule tasks. It is
configured to use SQLite as
both backend and broker, to know
more read the docs. The file run_yawgbot.py is provided to run the bot each 5 minutes, to use it:
- run
celery -A run_yawgbot.celery worker --loglevel=INFOto run the worker - run
celery -A run_yawgbot.celery beatto schedule the bot
web UI
To start the web UI simply run yawgbot-web
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file yawgbot-0.0.3.tar.gz.
File metadata
- Download URL: yawgbot-0.0.3.tar.gz
- Upload date:
- Size: 9.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e1570b65ac97702025af7c028dc02e325bf627a1cc3d128697fbd9d5eecbdfdf
|
|
| MD5 |
a580249e8f4f210921a43ab1a79a2885
|
|
| BLAKE2b-256 |
483796a658f0db16112da88c6b6c5e947801f37b493e7f7b6e960686a0cb4a6b
|
File details
Details for the file yawgbot-0.0.3-py3-none-any.whl.
File metadata
- Download URL: yawgbot-0.0.3-py3-none-any.whl
- Upload date:
- Size: 10.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/4.0.1 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
08a69fbc0d2da675af25f2e1e1d2846f1d75ed1847a60899272b69e953c1d6e4
|
|
| MD5 |
db235ee80b772dcffff29ff071c4a9ac
|
|
| BLAKE2b-256 |
92bb657ba7bf239136fd6861b10c60626063f9d2bda100058c84c3b1eb798449
|