- Create telegram bot following official documentation.
- Create a channel, invite your bot into the channel
- find out the channel id
- Create an sqlite database with a single table:
sqlite3 funda.py create table listing(street text);
- Install dependencies with:
pip install -r requirements.txt
- 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/...
- Run the app to get notifications for new listings:
python3 scraper.py
- Configure a cron job to run on certain intervals
- Enjoy and don't miss any new listings!