12306/config/ticket_config.yaml

118 lines
2.8 KiB
YAML
Raw Normal View History

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:
2018-12-25 02:34:56 +00:00
- "2018-12-29"
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
2018-09-04 11:05:27 +00:00
# 过滤车次(list)格式ex
# - "G1353"
# - "G1329"
2018-01-07 04:36:44 +00:00
station_trains:
2018-12-25 02:34:56 +00:00
# - "G6114"
# - "G1311"
# - "G6201"
# - "G821"
# - "G1019"
# - "G6587"
# - "G2905"
# - "G6345"
# - "G6033"
# - "G75"
# - "G6025"
# - "G6341"
# - "G1021"
# - "G99"
- "G6011"
2018-01-29 14:38:09 +00:00
# 出发城市,比如深圳北,就填深圳就搜得到
2018-12-25 02:34:56 +00:00
from_station: "长沙"
# 到达城市 比如深圳北,就填深圳就搜得到
2018-12-25 02:34:56 +00:00
to_station: "深圳"
2018-09-04 11:05:27 +00:00
# 座位(list) 多个座位ex:
# - "二等座"
# - "一等座"
2018-01-07 01:54:36 +00:00
set_type:
2018-12-25 02:34:56 +00:00
- "二等座"
2018-09-21 06:40:46 +00:00
# 当余票小于乘车人,如果选择优先提交,则删减联系人和余票数一致在提交
2018-12-25 02:34:56 +00:00
is_more_ticket: True
2018-09-04 11:05:27 +00:00
# 乘车人(list) 多个乘车人ex:
# - "张三"
# - "李四"
ticke_peoples:
2018-12-25 02:34:56 +00:00
- "文贤平"
- "梁敏"
2018-08-31 16:24:40 +00:00
# 12306登录账号(list)
12306account:
2018-12-25 02:34:56 +00:00
- user: "931128603@qq.com"
- pwd: "QWERTY"
2018-01-07 01:54:36 +00:00
# 加入小黑屋时间,此功能为了防止僵尸票导致一直下单不成功错过正常的票
2018-03-28 04:26:15 +00:00
ticket_black_list_time: 5
2018-01-07 01:54:36 +00:00
# 自动打码
2018-12-25 02:34:56 +00:00
is_auto_code: True
# 打码平台, 2 为若快平台(目前只支持若快平台打码,打码兔已经关闭), 若快注册地址http://www.ruokuai.com/client/index?6726
auto_code_type: 2
# 打码平台账号
auto_code_account:
2018-12-25 02:34:56 +00:00
user: "931128603"
pwd: "wen1995"
# 邮箱配置,如果抢票成功,将通过邮件配置通知给您
# 列举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"
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"
password: "xrvenridfpnnbehh"
host: "smtp.qq.com"
2018-08-31 16:24:40 +00:00
# 是否开启cdn查询可以更快的检测票票 1为开启2为关闭
2018-03-28 04:26:15 +00:00
is_cdn: 2
2018-01-28 06:27:24 +00:00
# 下单接口分为两种1 为快速下单2 是普通下单
2018-12-25 02:34:56 +00:00
order_type: 1
2018-01-07 01:54:36 +00:00