All Projects → digitalashes → olx-parser

digitalashes / olx-parser

Licence: other
Looks for new flats in Odessa and notify in the telegram through the bot

Programming Languages

python
139335 projects - #7 most used programming language

Projects that are alternatives of or similar to olx-parser

video-encoder-bot
A Telegram bot to encode videos files via ffmpeg.
Stars: ✭ 75 (+92.31%)
Mutual labels:  telegram-bot
telegram
📚 Golang bindings for Telegram API
Stars: ✭ 15 (-61.54%)
Mutual labels:  telegram-bot
bot
茶馆群内QQ机器人(小可)
Stars: ✭ 61 (+56.41%)
Mutual labels:  telegram-bot
forward-bot
Use Telegram to chat with your QQ friends.
Stars: ✭ 23 (-41.03%)
Mutual labels:  telegram-bot
grouphelperbot
A Telegram Bot made to help group admins, with Italian/English support.
Stars: ✭ 26 (-33.33%)
Mutual labels:  telegram-bot
CTBot
A simple (and easy to use) Arduino Telegram BOT Library for ESP8266/ESP32
Stars: ✭ 114 (+192.31%)
Mutual labels:  telegram-bot
File-Sharing-Bot
Telegram Bot to store Posts and Documents and it can Access by Special Links.
Stars: ✭ 867 (+2123.08%)
Mutual labels:  telegram-bot
TgTwitterStreamer
Continous Integration from Twitter to Telegram.
Stars: ✭ 55 (+41.03%)
Mutual labels:  telegram-bot
FreeSteamGames-TelegramBot
A Telegram Bot that sends you a message when a game on steam is free
Stars: ✭ 35 (-10.26%)
Mutual labels:  telegram-bot
grammy-inline-menu
Inline Menus for Telegram made simple. Successor of telegraf-inline-menu.
Stars: ✭ 274 (+602.56%)
Mutual labels:  telegram-bot
Truecaller-Smsbomber telegram bot
Telegram bot which has truecaller and smsbomber features
Stars: ✭ 30 (-23.08%)
Mutual labels:  telegram-bot
fp-telegram
Wrapper classes library for telegram bots API (FreePascal)
Stars: ✭ 59 (+51.28%)
Mutual labels:  telegram-bot
telegram-bot-api-worker
Take an alternate route to Telegram Bot API :)
Stars: ✭ 75 (+92.31%)
Mutual labels:  telegram-bot
tdlight-telegram-bot-api
The TDLight Telegram Bot API is an actively enhanced fork of the original Bot API, featuring experimental user support, proxies, unlimited files size, and more.
Stars: ✭ 71 (+82.05%)
Mutual labels:  telegram-bot
messenger-to-telegram
Connect your Facebook Messenger Account to your Telegram Messenger and Erase the Messenger App
Stars: ✭ 63 (+61.54%)
Mutual labels:  telegram-bot
OLX Scraper
📻 An OLX Scraper using Scrapy + MongoDB. It Scrapes recent ads posted regarding requested product and dumps to NOSQL MONGODB.
Stars: ✭ 15 (-61.54%)
Mutual labels:  olx
laravel-telegram-logging
Send logs to Telegram chat via Telegram bot
Stars: ✭ 95 (+143.59%)
Mutual labels:  telegram-bot
Telegram-Music-Bot
A Telegram music catalog bot.
Stars: ✭ 19 (-51.28%)
Mutual labels:  telegram-bot
TelegramBot
A genuine Perl 6 client for Telegram Bot API
Stars: ✭ 24 (-38.46%)
Mutual labels:  telegram-bot
tellerbot
Telegram Bot for over-the-counter trading
Stars: ✭ 17 (-56.41%)
Mutual labels:  telegram-bot

OLX flat parser.

Simple python script which can be running by crontab every 30 minutes for instance, looking up about new flats in Odessa and notifying in the telegram through the bot. The script is looking for apartments that were added yesterday and today only.

Prerequisites

  1. python 3.6 or higher
  2. pipenv
  3. sqlite3

Getting Started

  1. Clone project to your own local machine - git clone https://github.com/digitalashes/olx-parser.git
  2. Go to the script directory - cd olx-parser
  3. Copy file env.example to config directory and rename it to .env - cp env.example ./config/.env
  4. Fill in TELEGRAM_BOT_KEY and TELEGRAM_CHAT_IDS in config/.env also if you want, you can uncomment and change others constants.
  5. Create new pipenv environment - pipenv install
  6. Run pipenv shell main.py and waiting messages.

Settings description:

Crontab rule (every 30 minutes) - 0/30 * * * * <path to python interpritator> <path to file main.py>

  1. BASE_URL - Base url of olx with protocol. - https://www.olx.ua/
  2. PHONE_URL - Url for fetching seller telephone numbers.
  3. CATEGORY - nedvizhimost
  4. SUB_CATEGORY - arenda-kvartir
  5. SUB_SUB_CATEGORY - dolgosrochnaya-arenda-kvartir
  6. CITY - odessa
  7. DISTRICT_ID - 85 (Киевский), 199 (Коминтерновский), 87 (Малиновский), 89 (Приморский), 91 (Суворовский)
  8. MIN_PRICE - Min price of flat rent (not set less 1000). 2500
  9. MAX_PRICE - Max price of flat rent. 5000
  10. MIN_ROOMS - Min rooms amount in flat. 1
  11. MAX_ROOMS - Max rooms amount in flat. 1
  12. WITH_PHOTOS - Search ads with photos only or not. True
  13. WITH_PROMOTED - Include promoted ads. False
  14. PUBLICATION_DATE - List of values with information when ad was published. ['сегодня', 'вчера']
  15. TELEGRAM_BOT_API_URL - Telegram api url.
  16. TELEGRAM_BOT_KEY - Api key of telegram bot which will be sending messages.
  17. TELEGRAM_CHAT_IDS - List of conversations ids when messages will be sending.
  18. LOG_FILENAME - Name of logfile.
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].