A telegram bot searching for new flat rent offers on OLX and OtoDom.
- Node 14+
- TypeScript compiler
- Searching for new offers on OLX and OtoDom
- Informing about new offers on your Telegram group chat
- Faking User-Agent for masking
- Rotating proxy
- Uses Telegraf, Axios, Cheerio and SQLite
- Instal all dependencies with
npm install
. - Copy the contents of .env.example to .env and set all parameters.
- Build the project using
npm run build
. - Run the production code
npm run start
. - Add your bot instance to a Telegram chat.
- Use the command
/initialize
to run the bot on your chat.
.env field | Description | Default |
---|---|---|
TELEGRAM_BOT_TOKEN | Your bots token to the Telegram API | None |
FETCH_INTERVAL | Offer refresh interval | 900000 |
MAX_FETCH_RETRIES | Max request retry count | 3 |
DEBUG | Enable debug mode (the bot will send message when it fails to fetch offers) | true |
PROXY_LIST | Base64 encoded list of proxies (it's used when data/proxy-list.json does not exist) | None |
OBSERVABLES_LIST | Base64 encoded list of observable links (it's used when data/proxy-list.json does not exist) | None |
Copyright © 2021 Daniel Budziński