Skip to content

A telegram bot searching for new flat rent offers on OLX and OtoDom.

License

Notifications You must be signed in to change notification settings

Danieo6/apartment-seeker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Apartment Seeker

A telegram bot searching for new flat rent offers on OLX and OtoDom.

📦 Requirements

  • Node 14+
  • TypeScript compiler

💡 Features

  • 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

📖 How to use

  1. Instal all dependencies with npm install.
  2. Copy the contents of .env.example to .env and set all parameters.
  3. Build the project using npm run build.
  4. Run the production code npm run start.
  5. Add your bot instance to a Telegram chat.
  6. Use the command /initialize to run the bot on your chat.

⚙️ Config

.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

About

A telegram bot searching for new flat rent offers on OLX and OtoDom.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published