/applepricesbot

The Bot to parsing prices in several shops SPB and Moscow. The bot can send notification on change prices, available after subscribe on updated.

Primary LanguageHTMLMIT LicenseMIT

ApplePricesBot

Travis codecov Contributions Welcome

Telegram bot for check prices on apple products in several shops SpB and Moscow

Build and Run

1.Prepare environment variable

APPLEPRICEPARCER_TELEGRAMUSERNAME - telegram bot name username;
APPLEPRICEPARCER_TELEGRAMTOKEN - telegram bot token;
APPLEPRICEPARCER_DBPATH - path to DB file.

2.Print docker commands

$ docker build -t applepricesbot:latest .

Do not forget insert values for APPLEPRICEPARCER_TELEGRAMTOKEN and APPLEPRICEPARCER_DBPATH:

$ docker run --rm \
-e APPLEPRICEPARCER_TELEGRAMUSERNAME='' \
-e APPLEPRICEPARCER_TELEGRAMTOKEN='' \
-e APPLEPRICEPARCER_DBPATH='/app/data/database.db' \
--mount=type=bind,source="$(pwd)"/data,target=/app/data \
--name applepricesbot applepricesbot:latest 

Usage

Print /start command after running bot service.

Swagger

http://localhost:8080/swagger-ui.html

TODO

  • internalization;
  • more providers;
  • concurrent screening.

Patch

Welcome!