This is RZD Tickets monitor.
-
Install
Python 3.7+
andrequirements.txt
:python3.7 -m venv venv source venv/bin/activate pip install -r requirements.txt
-
Also you need to set env variables:
RZD_TICKETS_MONITOR_BOT_TOKEN
=BOT_TOKENRZD_TICKETS_MONITOR_BOT_PROXY
=SOCKS5 or HTTP proxy
-
Start bot (with env variables):
RZD_TICKETS_MONITOR_BOT_TOKEN=... \ RZD_TICKETS_MONITOR_BOT_PROXY=... \ python run_bot.py
-
Show help:
python run_terminal.py -h
-
Run:
python run_terminal.py \ --type Купе --count 2 \ 2004000 2000000 001А 31.01.2020
- Create file
.env
with env variables:RZD_TICKETS_MONITOR_BOT_TOKEN
andRZD_TICKETS_MONITOR_BOT_PROXY
(optional). docker-compose up -d