项目作者: achicha

项目描述 :
parser (client), which finds cheapest avia tickets and send them to the server https://github.com/achicha/telegram-bot
高级语言: Python
项目地址: git://github.com/achicha/travel.git
创建时间: 2017-11-22T10:30:49Z
项目社区:https://github.com/achicha/travel

开源协议:

下载


Quick start
  • Clone this repo: git clone https://github.com/achicha/travel
  • go to repo’s folder: cd travel
  • Install dependencies

    • with pipenv: pipenv install or pip install -r Pipfile
    • or using pip: pip install -r requirements.txt
  • create .env file: touch .env

  • add private parameters to .env:

    1. TOKEN=your_telegram_token
    2. CHAT_ID=your_telegram_chat_id
    3. DATABASE_NAME=db_name
    4. DATABASE_CON=sqlite:///
    5. HEROKU_URL=https://your_app.herokuapp.com/
    6. TRAVEL_ROUTE=my_api
  • activate virtualenv: pipenv shell

  • run this app: python run.py aviasales -from LWN -to MOW -s 2018-04-28 -e 2018-05-03 -p 10200