Skip to content

Here you can see the Telegram bot which finds new Avito.ru offers which you need and notify you.

License

Notifications You must be signed in to change notification settings

jakefish18/AvitoOffersNotifier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AvitoOffersNotifier

Telegram bot which helps you to track avito.ru for new offers. Currently, the bot is offline, but you can host it in your own. Example of notifications from telegram bot:

Dependencies

To host by yourself, you need to have linux server with Python 3.11.5 and PostgreSQL installed.

Installation and run

First, clone the repository to your machine where you want host the telegram bot and go the project directory:

git clone https://github.com/jakefish18/AvitoOffersNotifier
cd AvitoOffersNotifier

Second, it is not a required step, but I highly recommend to create venv/ for the project

python3 -m venv venv/
source venv/bin/activate

In case you have fish shell:

python3 -m venv venv/
source venv/bin/activate.fish

Third, install the requirements

pip3 install -r requirements.txt 

Fourth, create a .env file in src folder and fill it using .env.example as an example:

# Bot config.
BOT_TOKEN = ""
BOT_LOGS_FILEPATH = "" # Path to some 'bot.log' file.

# Proxy config.
# Do not change if no proxy.
PROXY_HTTP = ""
PROXY_HTTPS = ""
PROXY_CHANGE_URL = ""

# Database config.
DATABASE_HOST = "127.0.0.1"
DATABASE_NAME = ""
DATABASE_USERNAME = ""
DATABASE_PASSWORD = ""
PATH_TO_SQL_QUERIES = "" # Specity the full path to the /sql_queries/ folder with / at the end.

# Parser config.
CLIENT_NOTIFIER_LOGS = ""

As you can see, you need to get the bot token from BotFather and create a postgresql database. Also, create and specify the full paths to the .log files.

Last, run the bot:

cd src
python3 main.py

Fun fact

This project was made for the Big Challenges comptetition in 2023 year. Here you can find the presentation of it.

About

Here you can see the Telegram bot which finds new Avito.ru offers which you need and notify you.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages