-
Notifications
You must be signed in to change notification settings - Fork 1
/
config_example.py
61 lines (58 loc) · 1.58 KB
/
config_example.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# 打码服务器配置
code_server = {
'host': '12306.yinaoxiong.cn',
'scheme': 'https',
'path': '/verify/base64/'
}
# 邮箱配置,如果抢票成功,将通过邮件配置通知给您
# 列举163
# "sender": "xxx@163.com"
# "receivers": ["123@qq.com"]
# "username": "xxx"
# "password": "xxx
# "host": "smtp.163.com"
# 列举qq , qq设置比较复杂,需要在邮箱-->账户-->开启smtp服务,取得授权码 == 邮箱登录密码
# "sender": "xxx@qq.com"
# "receivers": ["123@qq.com"]
# "username": "xxx"
# "password": "授权码"
# "host": "smtp.qq.com"
email = {
# 是否开启邮箱通知
"enable": False,
"sender": "xx@qq.com",
"receivers": ["xx@136.com"],
"username": "xxx",
"password": "xxx",
"host": "smtp.qq.com"
}
# Server酱 使用前需要前往 http://sc.ftqq.com/3.version 扫码绑定获取 SECRET 并关注获得抢票结果通知的公众号
server_chan = {
# 是否开启 server酱 微信提醒
"enable": False,
"secret": ""
}
# 出发时间
from_time = '2021-01-22'
# 选择车次
trains = ['G412']
# 选择座位
seat_types = ["一等座", "二等座"]
# 选择乘坐人
passengers = ['张三']
# 12306 用户名
username = '131xxx12345'
# 12306 密码
password = '123456'
# 出发地
from_station = '上海'
# 目的地
to_station = '北京'
# 开始售票时间
start_time = '05:00:00'
# 停止售票时间
end_time = '23:00:00'
# ChromeDriver 运行路径
chrome_path = 'D:\\chromedriver.exe'
# 小黑屋时间,被 12306关小黑屋后,多长时间后重试,单位是秒,默认300秒,即5分钟
block_time = 300