-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.py
75 lines (67 loc) · 1.53 KB
/
config.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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# @Time : 18-5-24 下午8:26
# @Author : Elara
# @Site :
# @File : config.py
# @Software: PyCharm
import requests
from fake_useragent import UserAgent
s = requests.session()
ua = UserAgent()
headers = {
'User-Agent': ua.random
}
# 超级鹰的账户信息,自行修改
Chaojiying_username = ''
Chaojiying_password = ''
Chaojiying_soft_id = 1
# 验证码类型
Chaojiying_kind = 9004
# 12306登陆的账号密码
username = ''
password = ''
# 出发站点
from_station = '长沙'
# 到达站点
to_station = '武汉'
# 购买日期
train_data = '2018-06-22'
# 建立的火车座位信息,不要修改
train_seat = {
'车次': 3,
'出发时间': 8,
'到达时间': 9,
'坐车历时': 10,
'一等座': 31,
'二等座': 30,
'硬卧': 28,
'软卧': 23,
'硬座': 29,
'无座': 26
}
# 选择要购买的火车,可以输入多个中间用空格隔开
# 动车票暂时购买流程还没完成,请不要选择动车
trains = ['G864']
# 选择要购买的座位,可以输入多个中间用空格隔开
seats = ['二等座']
# 购买的座次代码,不要修改
submit_seat = {
'硬卧': '3',
'软卧': '4',
'硬座': '1',
'二等座': 'O',
'一等座': 'M',
'特等座': 'P'
}
# 一定要是在官网添加过信息的购票人才行,不能随意填写
# 购票人姓名
name = ''
# 购票人身份证
idendity = ''
# 购票人手机号码
mobile = ''
# 购票人序号
user_num = ''
# 接收通知的手机号
phonenumber = ''