Skip to content

calbec/flathunter

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Flathunter-Helper

Disclaimer

This script crawls websites and looks for new flat offers. If there is a new offer, a Telegram Bot will notify you.

Currently the script supports the following websites:

  • wg-gesucht.de
  • ebay-kleinanzeigen.de
  • immobilienscout24.de
  • immowelt.de

Setup

Prerequisites

To set up from scratch:

apt install python3
git clone git@github.com:calbec/flathunter.git
cd flathunter
apt install python3-pip
cp config.yaml.dist config.yaml
nano config.yaml

Now, do your edits to config file in nano editor

apt install python3-setuptools
apt install python3-wheel

Requirements

Install requirements from requirements.txt to run execute flathunter properly.

pip3 install -r requirements.txt

Usage

usage: python3 flathunter.py [-h] [--config CONFIG]

Searches for flats on Immobilienscout24.de and wg-gesucht.de and sends results
to Telegram User

optional arguments:
  -h, --help            show this help message and exit
  --config CONFIG, -c CONFIG
                        Config file to use, usually 'config.yaml'. If not set, try to use
                        '~git-clone-dir/config.yaml'

Configuration

Links

Currently, ebay-kleinanzeigen and immowelt only crawl the first page, so make sure to sort by newest offers.

Bot registration

A new bot can registered with the telegram chat with the BotFather.

Chat-Ids

To get the chat id (receiver ID), the REST-Api of telegram can be used to fetch the received messages of the Bot.

$ curl https://api.telegram.org/bot[BOT-TOKEN]/getUpdates

Google API

To use the distance calculation feature a Google API-Key is needed and requires the Distance Matrix API to be enabled. (This is NOT free) Since this feature is not free, I "disabled" it. Read line 62 in hunter.py to re-enable it.

Contributers

License

License: AGPL v3

About

TelegramBot that finds flats on immobilienscout24.de, ebay-kleinanzeigen.de, immowelt.de and wg-gesucht.de

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 100.0%