Skip to main content

yawgbot - yet another wg bot

Project description

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

Project details


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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page