2018-01-07 01:54:36 +00:00
|
|
|
|
---
|
2018-08-31 16:24:40 +00:00
|
|
|
|
# 配置文件请严格遵循yaml语法格式,yaml学习地址 https://ansible-tran.readthedocs.io/en/latest/docs/YAMLSyntax.html
|
2018-01-07 01:54:36 +00:00
|
|
|
|
set:
|
2018-09-04 11:05:27 +00:00
|
|
|
|
# 出发日期(list),格式ex:
|
|
|
|
|
# - 2018-01-06
|
|
|
|
|
# - 2018-01-07
|
2018-01-21 12:35:56 +00:00
|
|
|
|
station_dates:
|
2019-01-16 13:20:56 +00:00
|
|
|
|
- "2019-01-18"
|
2018-10-02 12:31:11 +00:00
|
|
|
|
|
|
|
|
|
# 是否根据时间范围 和 乘车类型 购票
|
|
|
|
|
# 否则将需要手动填写车次
|
|
|
|
|
is_by_time: False
|
|
|
|
|
|
|
|
|
|
# 列车类型: 高铁 G 动车 D 其它火车 O
|
|
|
|
|
train_types: [G,D,O]
|
|
|
|
|
|
|
|
|
|
# 可接受最早出发时间 格式ex:
|
|
|
|
|
# departure_time: "8:00"
|
|
|
|
|
departure_time: "00:00"
|
|
|
|
|
|
|
|
|
|
# 可接受最晚抵达时间 格式ex:
|
|
|
|
|
# arrival_time: "16:00"
|
|
|
|
|
arrival_time: "24:00"
|
|
|
|
|
|
|
|
|
|
# 可接受最长旅途时间 格式ex:
|
|
|
|
|
# take_time: "24:00"
|
|
|
|
|
take_time: "24:00"
|
2018-01-29 14:38:09 +00:00
|
|
|
|
|
2019-01-02 15:10:01 +00:00
|
|
|
|
# 填入需要购买的车次(list),格式ex:
|
2018-09-04 11:05:27 +00:00
|
|
|
|
# - "G1353"
|
|
|
|
|
# - "G1329"
|
2018-01-07 04:36:44 +00:00
|
|
|
|
station_trains:
|
2019-01-14 01:46:33 +00:00
|
|
|
|
- "G6153"
|
|
|
|
|
- "G6184"
|
|
|
|
|
- "G6173"
|
2018-01-29 14:38:09 +00:00
|
|
|
|
|
2018-08-29 11:19:13 +00:00
|
|
|
|
# 出发城市,比如深圳北,就填深圳就搜得到
|
2019-01-14 01:46:33 +00:00
|
|
|
|
from_station: "邵阳"
|
2018-08-29 11:19:13 +00:00
|
|
|
|
|
|
|
|
|
# 到达城市 比如深圳北,就填深圳就搜得到
|
2019-01-14 01:46:33 +00:00
|
|
|
|
to_station: "深圳北"
|
2018-08-29 11:19:13 +00:00
|
|
|
|
|
2018-09-04 11:05:27 +00:00
|
|
|
|
# 座位(list) 多个座位ex:
|
2019-01-09 06:14:40 +00:00
|
|
|
|
# - "商务座"
|
2018-09-04 11:05:27 +00:00
|
|
|
|
# - "一等座"
|
2019-01-09 06:14:40 +00:00
|
|
|
|
# - "二等座"
|
|
|
|
|
# - "特等座"
|
|
|
|
|
# - "软卧"
|
|
|
|
|
# - "硬卧"
|
|
|
|
|
# - "硬座"
|
|
|
|
|
# - "无座"
|
2019-01-09 07:18:59 +00:00
|
|
|
|
# - "动卧"
|
2018-01-07 01:54:36 +00:00
|
|
|
|
set_type:
|
2018-12-25 02:34:56 +00:00
|
|
|
|
- "二等座"
|
2018-08-29 11:19:13 +00:00
|
|
|
|
|
2018-09-21 06:40:46 +00:00
|
|
|
|
# 当余票小于乘车人,如果选择优先提交,则删减联系人和余票数一致在提交
|
2019-01-14 01:46:33 +00:00
|
|
|
|
is_more_ticket: False
|
2018-08-29 11:19:13 +00:00
|
|
|
|
|
2018-09-04 11:05:27 +00:00
|
|
|
|
# 乘车人(list) 多个乘车人ex:
|
|
|
|
|
# - "张三"
|
|
|
|
|
# - "李四"
|
2018-01-09 05:40:27 +00:00
|
|
|
|
ticke_peoples:
|
2019-01-16 14:28:49 +00:00
|
|
|
|
- ""
|
2019-01-14 01:46:33 +00:00
|
|
|
|
|
2018-08-31 16:24:40 +00:00
|
|
|
|
# 12306登录账号(list)
|
2018-08-29 11:19:13 +00:00
|
|
|
|
12306account:
|
2019-01-16 13:20:56 +00:00
|
|
|
|
- user: "qqxin1011"
|
2019-01-16 14:28:49 +00:00
|
|
|
|
- pwd: ""
|
2018-01-07 01:54:36 +00:00
|
|
|
|
|
2019-01-08 09:04:40 +00:00
|
|
|
|
# 加入小黑屋时间默认为5分钟,此功能为了防止僵尸票导致一直下单不成功错过正常的票,
|
2018-03-28 04:26:15 +00:00
|
|
|
|
ticket_black_list_time: 5
|
2018-01-07 01:54:36 +00:00
|
|
|
|
|
2018-08-29 11:19:13 +00:00
|
|
|
|
# 自动打码
|
2019-01-08 09:04:40 +00:00
|
|
|
|
is_auto_code: True
|
2018-08-29 11:19:13 +00:00
|
|
|
|
|
|
|
|
|
# 打码平台, 2 为若快平台(目前只支持若快平台打码,打码兔已经关闭), 若快注册地址:http://www.ruokuai.com/client/index?6726
|
|
|
|
|
auto_code_type: 2
|
|
|
|
|
|
|
|
|
|
# 打码平台账号
|
|
|
|
|
auto_code_account:
|
2019-01-02 15:10:01 +00:00
|
|
|
|
user: "931128603"
|
2019-01-17 02:06:23 +00:00
|
|
|
|
pwd: ""
|
2018-01-09 05:40:27 +00:00
|
|
|
|
|
2018-08-29 11:19:13 +00:00
|
|
|
|
# 邮箱配置,如果抢票成功,将通过邮件配置通知给您
|
|
|
|
|
# 列举163
|
|
|
|
|
# email: "xxx@163.com"
|
|
|
|
|
# notice_email_list: "123@qq.com"
|
|
|
|
|
# username: "xxxxx"
|
|
|
|
|
# password: "xxxxx
|
|
|
|
|
# host: "smtp.163.com"
|
|
|
|
|
# 列举qq ,qq设置比较复杂,需要在邮箱-->账户-->开启smtp服务,取得授权码==邮箱登录密码
|
|
|
|
|
# email: "xxx@qq.com"
|
|
|
|
|
# notice_email_list: "123@qq.com"
|
|
|
|
|
# username: "xxxxx"
|
|
|
|
|
# password: "授权码"
|
|
|
|
|
# host: "smtp.qq.com"
|
2018-01-13 15:08:03 +00:00
|
|
|
|
email_conf:
|
2018-01-24 04:56:18 +00:00
|
|
|
|
is_email: True
|
2018-12-25 02:34:56 +00:00
|
|
|
|
email: "931128603@qq.com "
|
|
|
|
|
notice_email_list: "931128603@qq.com"
|
|
|
|
|
username: "931128603"
|
2018-12-25 02:41:25 +00:00
|
|
|
|
password: ""
|
2018-12-25 02:34:56 +00:00
|
|
|
|
host: "smtp.qq.com"
|
2018-01-13 15:08:03 +00:00
|
|
|
|
|
2019-01-10 16:41:41 +00:00
|
|
|
|
# 是否开启 pushbear 微信提醒, 使用前需要前往 http://pushbear.ftqq.com 扫码绑定获取 send_key 并关注获得抢票结果通知的公众号
|
|
|
|
|
pushbear_conf:
|
2019-01-16 14:28:49 +00:00
|
|
|
|
is_pushbear: False
|
|
|
|
|
send_key: ""
|
2019-01-10 16:41:41 +00:00
|
|
|
|
|
2018-08-31 16:24:40 +00:00
|
|
|
|
# 是否开启cdn查询,可以更快的检测票票 1为开启,2为关闭
|
2019-01-02 15:10:01 +00:00
|
|
|
|
is_cdn: 1
|
2018-01-28 06:27:24 +00:00
|
|
|
|
|
2019-01-14 01:46:33 +00:00
|
|
|
|
# 下单接口分为两种,1 模拟网页自动捡漏下单(不稳定),2 模拟车次后面的购票按钮下单(稳如老狗)
|
2019-01-06 04:16:45 +00:00
|
|
|
|
order_type: 2
|
2019-01-02 15:10:01 +00:00
|
|
|
|
|
|
|
|
|
# 下单模式 1 为预售,整点刷新,刷新间隔0.1-0.5S, 然后会校验时间,比如12点的预售,那脚本就会在12.00整检票,刷新订单
|
|
|
|
|
# 2 是捡漏,捡漏的刷新间隔时间为0.5-3秒,时间间隔长,不容易封ip
|
2019-01-03 12:38:08 +00:00
|
|
|
|
order_model: 2
|
|
|
|
|
|
|
|
|
|
# 预售放票时间, 如果是捡漏模式,可以忽略此操作
|
2019-01-06 04:16:45 +00:00
|
|
|
|
open_time: '13:00:00'
|
2018-01-13 15:08:03 +00:00
|
|
|
|
|
2019-01-08 09:04:40 +00:00
|
|
|
|
# 是否开启代理, 0代表关闭, 1表示开始
|
|
|
|
|
# 开启此功能的时候请确保代理ip是否可用,在测试放里面经过充分的测试,再开启此功能,不然可能会耽误你购票的宝贵时间
|
|
|
|
|
# 使用方法:
|
|
|
|
|
# 1、在agency/proxy_list列表下填入代理ip
|
|
|
|
|
# 2、测试UnitTest/TestAll/testProxy 测试代理是否可以用
|
|
|
|
|
# 3、开启代理ip
|
|
|
|
|
is_proxy: 0
|
2018-01-07 01:54:36 +00:00
|
|
|
|
|
|
|
|
|
|