Skip to content

nolik/rent-scrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

rent-scrapper

Scrap fresh rent ads from https://www.otodom.pl/ and https://www.olx.pl/ and send updates into Telegram private chat.

Pre-requirement:

Installed Docker

RunBook:

  1. Register new bot with BotFather: https://core.telegram.org/bots#3-how-do-i-create-a-bot
  2. Write msg to bot to identify chat_id
  3. Setup OTODOM_SEARCH_URL
    const OTODOM_SEARCH_URL: &str = "https://www.otodom.pl/pl/oferty/wynajem/mieszkanie/lodz";
    and OLX_SEARCH_URL
    const OLX_SEARCH_URL: &str = "https://www.olx.pl/nieruchomosci/mieszkania/wynajem/lodzkie/";
  4. Setup TELEGRAM_BOT_ID and TELEGRAM_BOT_TOKEN for TELEGRAM_SEND_MSG_URL
    const TELEGRAM_SEND_MSG_URL: &str = "https://api.telegram.org/{TELEGRAM_BOT_ID}:{TELEGRAM_BOT_TOKEN}/sendMessage";
  5. Setup TELEGRAM_CHAT_ID
    const CHAT_ID_PARAM: (&str, &str) = ("chat_id", "{TELEGRAM_CHAT_ID}");
  6. Build and run container with scrapper: docker run --rm -it $(docker build -q .)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published