Skip to content

mohamadesmaeilii28-hub/divar-telegram-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Divar Telegram Bot 🤖

A Telegram bot built with Python that allows users to search listings from Divar and retrieve real-time results directly inside Telegram.

🚀 Features

  • Search listings by category
  • Select city dynamically
  • Scrapes Divar API
  • Clean structured responses
  • Persian number conversion

🛠 Tech Stack

  • Python 3
  • python-telegram-bot
  • requests
  • Git

📦 Installation

  1. Clone the repository: git clone https://github.com/yourusername/divar-telegram-bot.git

  2. Navigate into the project folder: cd divar-telegram-bot

  3. Install dependencies: pip install -r requirements.txt

  4. Add your Telegram Bot Token

  5. Run the bot: python main.py

📁 Project Structure

main.py → Telegram bot logic
scrap.py → Divar scraping functions
config.py → Configuration (Token, cities, categories)
requirements.txt → Dependencies

🔐 Environment Variables (Recommended)

Instead of hardcoding the token, use:

About

A Python-based Telegram bot that fetches and displays real-time listings from Divar using API requests and dynamic user input handling.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages