-
Notifications
You must be signed in to change notification settings - Fork 241
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #5 from cugu/readme
Simplify README.md
- Loading branch information
Showing
2 changed files
with
17 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,59 +1,23 @@ | ||
# Python Flathunter-Helper | ||
# Flathunter | ||
A python crawler which crawls Immobilienscout24.de and wg-gesucht.de for new appartments and sends the results to a Telegram user | ||
|
||
[![Build Status](https://travis-ci.org/NodyHub/flathunter.svg?branch=master)](https://travis-ci.org/NodyHub/flathunter) | ||
|
||
## Setup | ||
|
||
### Virtual Environment (Optional) | ||
To keep you python environment and site-packages clean, it is recommended | ||
to run the project in a virtual environment. Install ```virtualenv```, | ||
create a venv and activate. | ||
``` | ||
$ pip install virtualenv | ||
$ virtualenv -p /usr/bin/python3.6 venv | ||
$ source venv/bin/activate | ||
``` | ||
|
||
|
||
### Requirements | ||
Install requirements from ```requirements.txt``` to run execute flathunter properly. | ||
Install requirements from ```requirements.txt``` to run execute flathunter properly: | ||
``` | ||
pip install -r requirements.txt | ||
``` | ||
|
||
## Usage | ||
``` | ||
usage: 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. If not set, try to use | ||
'~git-clone-dir/config.yaml' | ||
``` | ||
|
||
### Configuration | ||
Rename ```config.yaml.dist``` to ```config.yaml``` and go through it to adapt it to your needs. | ||
|
||
#### Bot registration | ||
A new bot can registered with the telegram chat with the [BotFather](https://telegram.me/BotFather). | ||
|
||
#### Chat-Ids | ||
To get the chat id, the [REST-Api](https://core.telegram.org/bots/api) of telegram can be used to fetch the received messages of the Bot. | ||
## Usage | ||
To use the flathunter simply run: | ||
``` | ||
$ curl https://api.telegram.org/bot[BOT-TOKEN]/getUpdates | ||
python flathunter.py | ||
``` | ||
|
||
#### Google API | ||
To use the distance calculation feature a [Google API-Key](https://developers.google.com/maps/documentation/javascript/get-api-key) is needed. | ||
|
||
|
||
## Contributers | ||
- [@NodyHub](https://github.com/NodyHub) | ||
- Bene | ||
- [@Cugu](https://github.com/Cugu) | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters