Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
文贤平 committed Sep 4, 2019
1 parent fd379e7 commit f970b3e
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 14 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@
- 非root用户(避免安装和运行时使用了不同环境): `pip3 install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt`
#### 项目使用说明
- 可以配置邮箱,可以配置可以不配置,配置邮箱的格式在[配置](TickerConfig.py)里面可以看到ex
- 可以配置server酱提醒(推荐)[配置教程](https://www.jianshu.com/p/8d10b5b9c4e3)
- 可以配置邮箱,配置邮箱的格式在[配置](TickerConfig.py)里面可以看到ex
- 可以配置server酱提醒(推荐)[配置教程](https://www.jianshu.com/p/8d10b5b9c4e3)
- 配置[配置](TickerConfig.py)文件的时候,需注意空格和遵循python语法格式
#### 项目开始
Expand Down
22 changes: 10 additions & 12 deletions TickerConfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,15 +19,14 @@

# 填入需要购买的车次(list),"G1353"
STATION_TRAINS = [
"G6142",
"G6174",
"",
]

# 出发城市,比如深圳北,就填深圳就搜得到
FROM_STATION = "深圳北"
FROM_STATION = ""

# 到达城市 比如深圳北,就填深圳就搜得到
TO_STATION = "隆回"
TO_STATION = ""

# 座位(list) 多个座位ex:
# "商务座",
Expand All @@ -51,13 +50,12 @@
# - "张三"
# - "李四"
TICKET_PEOPLES = [
"文贤平",
"李梦云",
"",
]

# 12306登录账号
USER = "[email protected]"
PWD = "QWERTY"
USER = ""
PWD = ""

# 加入小黑屋时间默认为5分钟,此功能为了防止僵尸票导致一直下单不成功错过正常的票
TICKET_BLACK_LIST_TIME = 5
Expand All @@ -80,10 +78,10 @@
# host: "smtp.qq.com"
EMAIL_CONF = {
"IS_MAIL": True,
"email": "[email protected]",
"notice_email_list": "[email protected]",
"username": "[email protected]",
"password": "lwvgfrcydzyvbfjf",
"email": "",
"notice_email_list": "",
"username": "",
"password": "",
"host": "smtp.qq.com",
}

Expand Down

0 comments on commit f970b3e

Please sign in to comment.