Python web crawler / scraper for WG-Gesucht. Crawls the WG-Gesucht site for new apartment listings and send a message to the poster, based off your saved filters and saved text template.
Project description
Python web crawler / scraper for WG-Gesucht. Crawls the WG-Gesucht site for new apartment listings and send a message to the poster, based off your saved filters and saved text template.
Installation
$ pip install wg-gesucht-crawler-cli
Or, if you have virtualenvwrapper installed:
$ mkvirtualenv wg-gesucht-crawler-cli $ pip install wg-gesucht-crawler-cli
Use
Can be run directly from the command line with:
$ wg-gesucht-crawler-cli --help
Or if you want to use it in your own project:
from wg_gesucht.crawler import WgGesuchtCrawler
Just make sure to save at least one search filter as well as a template text on your wg-gesucht account.
Free software: MIT license
Documentation: https://wg-gesucht-crawler-cli.readthedocs.org.
Features
Searches https://wg-gesucht.de for new WG ads based off your saved filters
Sends your saved template message and applies to all matching listings
Reruns every ~5 minutes
Run on a RPi or free EC2 micro instance 24/7 to always be one of the first to apply for new listings
Getting Caught with reCAPTCHA
I’ve made the crawler sleep for 5-8 seconds between each request to try and avoid their reCAPTCHA, but if the crawler does get caught, you can sign into your wg-gesucht account manually through the browser and solve the reCAPTCHA, then start the crawler again.
If it continues to happen, you can also increase the sleep time in the get_page()
function in wg_gesucht.py
History
Pre-release
Project details
Release history Release notifications | RSS feed
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
Hashes for wg-gesucht-crawler-cli-0.1.8.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1336f4ebe1ae9ef8634a3c19c6659b339bdfcfe6f06f6f9b2ba084418d7f4781 |
|
MD5 | b3388e6c3e314153a59dbaa3cc29edce |
|
BLAKE2b-256 | 05e7a0547846c82a87713ccf43e4608ab5d87a8836bc38d483f8e7da18a6ed15 |
Hashes for wg_gesucht_crawler_cli-0.1.8-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f4ec5df520426791000d94213b6f98a606208f4a37fcefcb69b4b61bd4f4ce20 |
|
MD5 | 74a17ba76becab3f02c6dfc70e034caf |
|
BLAKE2b-256 | 2446035803546d9c8027945f20aa1b49e0c0f7756587022a81f78e389049db9f |