Skip to main content

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.sample and rename it to .env
  • create a new file named bot.py with 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=INFO to run the worker
  • run celery -A run_yawgbot.celery beat to schedule the bot

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yawgbot-0.0.1.tar.gz (9.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yawgbot-0.0.1-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file yawgbot-0.0.1.tar.gz.

File metadata

  • Download URL: yawgbot-0.0.1.tar.gz
  • Upload date:
  • Size: 9.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.4

File hashes

Hashes for yawgbot-0.0.1.tar.gz
Algorithm Hash digest
SHA256 3d6821a75bb0e324ce62597be7cbdf5991ac0d708f7aa93f86dda0c3e1e46498
MD5 0361931af70952ec1b8d774f63316359
BLAKE2b-256 428d85661f7c8dbc3255865e356ffc0084497fe60f5fa802bd4d92a18ee623ed

See more details on using hashes here.

File details

Details for the file yawgbot-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: yawgbot-0.0.1-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

Hashes for yawgbot-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 b4a61b1484d748e01e3b5abbfb3b80d82b0055e508896d61c8f37ddc63de3563
MD5 95d87dacb7ea8cca61c53aedbe729251
BLAKE2b-256 c42f02a95a4e5596a25213d85a6492c0fb230a3fc54862ef5dee9b9c31dd5240

See more details on using hashes here.

Release history Release notifications | RSS feed

0.0.7

2 files

0.0.6

2 files

0.0.5

2 files

0.0.4

2 files

0.0.3

2 files

0.0.2

2 files

This release

0.0.1 This release

2 files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page