|
|
|
@ -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 @@ TO_STATION = ""
|
|
|
|
|
# "无座",
|
|
|
|
|
# "动卧",
|
|
|
|
|
SET_TYPE = [
|
|
|
|
|
"",
|
|
|
|
|
"无座",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# 当余票小于乘车人,如果选择优先提交,则删减联系人和余票数一致在提交
|
|
|
|
@ -45,12 +44,13 @@ IS_MORE_TICKET = True
|
|
|
|
|
# - "张三"
|
|
|
|
|
# - "李四"
|
|
|
|
|
TICKET_PEOPLES = [
|
|
|
|
|
"",
|
|
|
|
|
"文贤平",
|
|
|
|
|
"李梦云",
|
|
|
|
|
]
|
|
|
|
|
|
|
|
|
|
# 12306登录账号
|
|
|
|
|
USER = ""
|
|
|
|
|
PWD = ""
|
|
|
|
|
USER = "qqxin1011"
|
|
|
|
|
PWD = "quxm19861011"
|
|
|
|
|
|
|
|
|
|
# 加入小黑屋时间默认为5分钟,此功能为了防止僵尸票导致一直下单不成功错过正常的票
|
|
|
|
|
TICKET_BLACK_LIST_TIME = 5
|
|
|
|
@ -58,6 +58,10 @@ TICKET_BLACK_LIST_TIME = 5
|
|
|
|
|
# 自动打码
|
|
|
|
|
IS_AUTO_CODE = True
|
|
|
|
|
|
|
|
|
|
# 设置2本地自动打码,需要配置tensorflow和keras库,3为云打码,由于云打码服务器资源有限(为2h4C的cpu服务器),请不要恶意请求,不然只能关闭服务器
|
|
|
|
|
# ps: 请不要一直依赖云服务器资源,在此向提供服务器的"do it"同学表示感谢
|
|
|
|
|
AUTO_CODE_TYPE = 2
|
|
|
|
|
|
|
|
|
|
# 邮箱配置,如果抢票成功,将通过邮件配置通知给您
|
|
|
|
|
# 列举163
|
|
|
|
|
# email: "xxx@163.com"
|
|
|
|
@ -73,11 +77,11 @@ IS_AUTO_CODE = True
|
|
|
|
|
# host: "smtp.qq.com"
|
|
|
|
|
EMAIL_CONF = {
|
|
|
|
|
"IS_MAIL": True,
|
|
|
|
|
"email": "",
|
|
|
|
|
"notice_email_list": "",
|
|
|
|
|
"username": "",
|
|
|
|
|
"password": "",
|
|
|
|
|
"host": "",
|
|
|
|
|
"email": "931128603@qq.com",
|
|
|
|
|
"notice_email_list": "931128603@qq.com",
|
|
|
|
|
"username": "931128603@qq.com",
|
|
|
|
|
"password": "lwvgfrcydzyvbfjf",
|
|
|
|
|
"host": "smtp.qq.com",
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
# 是否开启 server酱 微信提醒, 使用前需要前往 http://sc.ftqq.com/3.version 扫码绑定获取 SECRET 并关注获得抢票结果通知的公众号
|
|
|
|
@ -111,7 +115,7 @@ OPEN_TIME = "13:00:00"
|
|
|
|
|
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 @@ PASSENGER_TICKER_STR = {
|
|
|
|
|
MAX_TIME = 5
|
|
|
|
|
# 最小间隔请求时间
|
|
|
|
|
MIN_TIME = 3
|
|
|
|
|
|
|
|
|
|
# 软件版本
|
|
|
|
|
RE_VERSION = "1.1.113"
|
|
|
|
|
RE_VERSION = "1.1.114"
|