You can see how the script works here:
The script scrapes (parses) the site and adds information about the products to the database. The next time the script runs, it checks the products and if the price changes, it adds a new price to the database. If the price has decreased equally or less than 15%, it sends a notification to the Telegram channel.
Clone repositories
git clone https://github.com/daradan/parser_CU.git
Installing libraries
pip install -r requirements.txt
Create file .env and fill in your data
TG_TOKEN=...
TG_CHANNEL=@...
TG_CHANNEL_ERROR=...
USER_AGENT=...
*Note: you must use a special user_agent
Работу скрипта можно посмотреть тут:
Скрипт скрейпит (парсит) сайт и добавляет в БД информацию о товарах. При следующем запуске проверяет товар, и в случае изменения цены добавляет новую цену в БД. Если цена снизилась равно или меньше на 15%, то отправляет уведомление на Telegram-канал.
Клонируем репозитории
git clone https://github.com/daradan/parser_CU.git
Устанавливаем библиотеки
pip install -r requirements.txt
Создаем файл .env и заполняем свои данные
TG_TOKEN=...
TG_CHANNEL=@...
TG_CHANNEL_ERROR=...
USER_AGENT=...
*Примечание: необходимо использовать специальный user_agent