Skip to content

Latest commit

 

History

History
29 lines (28 loc) · 994 Bytes

README.md

File metadata and controls

29 lines (28 loc) · 994 Bytes

Funda notification bot

telegram

Setting up

  1. Create telegram bot following official documentation.
  2. Create a channel, invite your bot into the channel
  3. find out the channel id
  4. Create an sqlite database with a single table:
    sqlite3 funda.py
    create table listing(street text);
    
  5. Install dependencies with:
    pip install -r requirements.txt
    
  6. Define environment variables:
    export FUNDA_DB=... # location of sqlite database
    export TELEGRAM_TOKEN=... # telegram token 1234567890:QWERTYQWERTYQWERTYQWERTYQWERTYQWERT
    export CHAT_ID=... # -1234567890
    export SEARCH_URL=... # funda search url https://www.funda.nl/zoeken/...
    
  7. Run the app to get notifications for new listings:
    python3 scraper.py
    
  8. Configure a cron job to run on certain intervals
  9. Enjoy and don't miss any new listings!