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 and web UI
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
Metadata
Release files for yawgbot 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| yawgbot-0.0.2.tar.gz | 9.6 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| yawgbot-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 19.8 kB
Release files / yawgbot-0.0.2.tar.gz
| Download URL | yawgbot-0.0.2.tar.gz |
|---|---|
| Size | 9.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
9fc60cffe6b4a8267c743ef47912bd50ebe2624fc69f039794936eef6aa3e1a5
|
|
BLAKE2b-256 checksum How to use checksums |
d293e669013f55d20fadf1531d74c785a7b8b241d18698df9c8b6f6e66744666
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|
Release files / yawgbot-0.0.2-py3-none-any.whl
| Download URL | yawgbot-0.0.2-py3-none-any.whl |
|---|---|
| Size | 10.2 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
3eb4edd67843d8aa2d2feb495828f3ad3152b660e110e830fef80d2f44aad6b2
|
|
BLAKE2b-256 checksum How to use checksums |
2ef2266a9b8ab394bb63c99e484a0d7f0770365996d3815a157fcfdd30627d6a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/4.0.1 CPython/3.10.4
|