forked from testerSunshine/12306
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
399f9b6
commit 5fd9b8f
Showing
10 changed files
with
91 additions
and
56 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,23 @@ | |
# 如果这个时候捡漏捡到的话,也是可以付款成功的,也就是说,捡漏+候补,可以最大程度提升抢票成功率 | ||
|
||
# 刷票模式:1=刷票 2=候补+刷票 | ||
TICKET_TYPE = 2 | ||
TICKET_TYPE = 1 | ||
|
||
# 出发日期(list) "2018-01-06", "2018-01-07" | ||
STATION_DATES = [ | ||
"2019-10-01" | ||
"2019-09-26" | ||
] | ||
|
||
# 填入需要购买的车次(list),"G1353" | ||
# 修改车次填入规则,注:(以前设置的车次逻辑不变),如果车次填入为空,那么就是当日乘车所有车次都纳入筛选返回 | ||
STATION_TRAINS = [ | ||
"", | ||
] | ||
# 不填车次是整个list为空才算,如果不是为空,依然会判断车次的,这种是错误的写法 [""], 正确的写法 [] | ||
STATION_TRAINS = [] | ||
|
||
# 出发城市,比如深圳北,就填深圳就搜得到 | ||
FROM_STATION = "" | ||
FROM_STATION = "松山湖北" | ||
|
||
# 到达城市 比如深圳北,就填深圳就搜得到 | ||
TO_STATION = "" | ||
TO_STATION = "西平西" | ||
|
||
# 座位(list) 多个座位ex: | ||
# "商务座", | ||
|
@@ -34,7 +33,7 @@ | |
# "无座", | ||
# "动卧", | ||
SET_TYPE = [ | ||
"", | ||
"无座", | ||
] | ||
|
||
# 当余票小于乘车人,如果选择优先提交,则删减联系人和余票数一致在提交 | ||
|
@@ -45,19 +44,24 @@ | |
# - "张三" | ||
# - "李四" | ||
TICKET_PEOPLES = [ | ||
"", | ||
"文贤平", | ||
"李梦云", | ||
] | ||
|
||
# 12306登录账号 | ||
USER = "" | ||
PWD = "" | ||
USER = "qqxin1011" | ||
PWD = "quxm19861011" | ||
|
||
# 加入小黑屋时间默认为5分钟,此功能为了防止僵尸票导致一直下单不成功错过正常的票 | ||
TICKET_BLACK_LIST_TIME = 5 | ||
|
||
# 自动打码 | ||
IS_AUTO_CODE = True | ||
|
||
# 设置2本地自动打码,需要配置tensorflow和keras库,3为云打码,由于云打码服务器资源有限(为2h4C的cpu服务器),请不要恶意请求,不然只能关闭服务器 | ||
# ps: 请不要一直依赖云服务器资源,在此向提供服务器的"do it"同学表示感谢 | ||
AUTO_CODE_TYPE = 2 | ||
|
||
# 邮箱配置,如果抢票成功,将通过邮件配置通知给您 | ||
# 列举163 | ||
# email: "[email protected]" | ||
|
@@ -73,11 +77,11 @@ | |
# host: "smtp.qq.com" | ||
EMAIL_CONF = { | ||
"IS_MAIL": True, | ||
"email": "", | ||
"notice_email_list": "", | ||
"username": "", | ||
"password": "", | ||
"host": "", | ||
"email": "[email protected]", | ||
"notice_email_list": "[email protected]", | ||
"username": "[email protected]", | ||
"password": "lwvgfrcydzyvbfjf", | ||
"host": "smtp.qq.com", | ||
} | ||
|
||
# 是否开启 server酱 微信提醒, 使用前需要前往 http://sc.ftqq.com/3.version 扫码绑定获取 SECRET 并关注获得抢票结果通知的公众号 | ||
|
@@ -111,7 +115,7 @@ | |
COOKIE_TYPE = 1 | ||
# 如果COOKIE_TYPE=1,则需配置chromeDriver路径,下载地址http://chromedriver.storage.googleapis.com/index.html | ||
# chromedriver配置版本只要和chrome的大版本匹配就行 | ||
CHROME_PATH = "" | ||
CHROME_PATH = "/Users/wenxianping/Downloads/chromedriver" | ||
|
||
# 1=>为一直随机ua,2->只启动的时候随机一次ua | ||
RANDOM_AGENT = 2 | ||
|
@@ -133,5 +137,6 @@ | |
MAX_TIME = 5 | ||
# 最小间隔请求时间 | ||
MIN_TIME = 3 | ||
|
||
# 软件版本 | ||
RE_VERSION = "1.1.113" | ||
RE_VERSION = "1.1.114" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -185,3 +185,7 @@ | |
- 增长随机停留时长 | ||
- 增长用户心跳时间,减少对服务器压力 | ||
- 优化下单逻辑 | ||
- 2019.09.18更新 | ||
- 修改下单问题 | ||
- 优化车次打印 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters