-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathconfig.py
70 lines (68 loc) · 2.88 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
# -*- coding: utf-8 -*-
# @Time : 2019/12/2 11:21
# @Author : Mrli
# @FileName: config.py.py
# @Cnblogs :https://nymrli.top/
headers= {
'Host': 'jwxt.njupt.edu.cn',
'Pragma': 'no-cache',
'Cache-Control': 'no-cache',
'Origin': 'http://jwxt.njupt.edu.cn',
'Upgrade-Insecure-Requests': '1',
'Content-Type': 'application/x-www-form-urlencoded',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/73.0.3683.103 Safari/537.36',
'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3', 'Referer': 'http://jwxt.njupt.edu.cn/xs_jsmydpj.aspx?xkkh=(2019-2020-1)-B0502032S-ZDHY0001-1&xh=B17050322', 'Accept-Encoding': 'gzip, deflate', 'Accept-Language':
'zh-CN,zh;q=0.9,en;q=0.8',
'Connection': 'keep-alive'
}
# data = {
# '__EVENTTARGET': '',
# '__EVENTARGUMENT': '',
# 'DataGrid1:_ctl2:JS1': quote('完全认同', encoding='gb2312'),
# 'DataGrid1:_ctl3:JS1': quote('完全认同', encoding='gb2312'),
# 'DataGrid1:_ctl4:JS1': quote('完全认同', encoding='gb2312'),
# 'DataGrid1:_ctl5:JS1': quote('完全认同', encoding='gb2312'),
# 'DataGrid1:_ctl6:JS1': quote('完全认同', encoding='gb2312'),
# 'DataGrid1:_ctl7:JS1': quote('完全认同', encoding='gb2312'),
# 'DataGrid1:_ctl8:JS1': quote('完全认同', encoding='gb2312'),
# 'DataGrid1:_ctl9:JS1': quote('完全认同', encoding='gb2312'),
# 'DataGrid1:_ctl10:JS1': quote('完全认同', encoding='gb2312'),
# 'DataGrid1:_ctl11:JS1': quote('完全认同', encoding='gb2312'),
# 'pjxx': '',
# 'Button1': '保 存',
# }
# 不编码
data = {
'__EVENTTARGET': '',
'__EVENTARGUMENT': '',
'DataGrid1:_ctl2:JS1': '完全认同',
'DataGrid1:_ctl3:JS1': '完全认同',
'DataGrid1:_ctl4:JS1': '完全认同',
'DataGrid1:_ctl5:JS1': '完全认同',
'DataGrid1:_ctl6:JS1': '完全认同',
'DataGrid1:_ctl7:JS1': '完全认同',
'DataGrid1:_ctl8:JS1': '完全认同',
'DataGrid1:_ctl9:JS1': '完全认同',
'DataGrid1:_ctl10:JS1': '完全认同',
'DataGrid1:_ctl11:JS1': '完全认同',
'pjxx': '',
'Button1': '保 存',
}
# 编码
# data = {
# '__EVENTTARGET': '',
# '__EVENTARGUMENT': '',
# # 电机
# 'DataGrid1:_ctl2:JS1': '%CD%EA%C8%AB%C8%CF%CD%AC',
# 'DataGrid1:_ctl3:JS1': '%CD%EA%C8%AB%C8%CF%CD%AC',
# 'DataGrid1:_ctl4:JS1': '%CD%EA%C8%AB%C8%CF%CD%AC',
# 'DataGrid1:_ctl5:JS1': '%CD%EA%C8%AB%C8%CF%CD%AC',
# 'DataGrid1:_ctl6:JS1': '%CD%EA%C8%AB%C8%CF%CD%AC',
# 'DataGrid1:_ctl7:JS1': '%CD%EA%C8%AB%C8%CF%CD%AC',
# 'DataGrid1:_ctl8:JS1': '%CD%EA%C8%AB%C8%CF%CD%AC',
# 'DataGrid1:_ctl9:JS1': '%CD%EA%C8%AB%C8%CF%CD%AC',
# 'DataGrid1:_ctl10:JS1': '%CD%EA%C8%AB%C8%CF%CD%AC',
# 'DataGrid1:_ctl11:JS1': '%CD%EA%C8%AB%C8%CF%CD%AC',
# 'pjxx': '',
# 'Button1': '%B1%A3++%B4%E6',
# }