-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathFDU_headers.py
55 lines (52 loc) · 2.44 KB
/
FDU_headers.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
# !/usr/bin/env python
# --------------------------------------------------------------
# File: FDU_headers.py
# Project: FDU_Timetable
# Created: Wednesday, 13th November 2019 11:29:38 am
# @Author: Molin Liu, MSc in Data Science
# Contact: [email protected]
# Last Modified: Wednesday, 13th November 2019 11:34:43 am
# Copyright © Rockface 2019 - 2020
# --------------------------------------------------------------
HEADER_CAPTCHA = {
"Host": "uis.fudan.edu.cn",
"Connection": "keep-alive",
"Accept": "text/plain, */*; q=0.01",
"DNT": "1",
"X-Requested-With": "XMLHttpRequest",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36",
"Referer": "http://uis.fudan.edu.cn/authserver/login?service=http%3A%2F%2Fjwfw.fudan.edu.cn%2Feams%2Flogin.action",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7,ja;q=0.6"
}
HEADER_LT = {
"Host": "uis.fudan.edu.cn",
"Connection": "keep-alive",
"X-Requested-With": "XMLHttpRequest",
"User-Agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36",
"Referer": "http://jwfw.fudan.edu.cn/eams/home.action",
"Accept-Encoding": "gzip, deflate",
"Accept-Language": "zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7,ja;q=0.6",
"Upgrade-Insecure-Requests": "1"
}
HEADER_LOGIN = {
"Accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3",
"Connection": "keep-alive",
"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.100 Safari/537.36"
}
HEADER_MAIN = {
"authority": "www.fudan.edu.cn",
"method": "GET",
"path": "/",
"scheme": "https",
'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3',
'accept-encoding': 'gzip, deflate, br',
'accept-language': 'zh-CN,zh;q=0.9,en;q=0.8,zh-TW;q=0.7,ja;q=0.6',
'cache-control': 'max-age=0',
'dnt': '1',
'sec-fetch-mode': 'navigate',
'sec-fetch-site': 'none',
'sec-fetch-user': '?1',
'upgrade-insecure-requests': '1',
'user-agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/78.0.3904.97 Safari/537.36',
}