This repository has been archived by the owner on Jan 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
config.py
53 lines (41 loc) · 2.24 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
from flask import Flask
from apscheduler.schedulers.background import BackgroundScheduler
class flaskConfig:
# DEBUG模式
DEBUG = False
# 网站URL
url = "http://127.0.0.1:5000/"
# html模版路径
template_folder = './templates'
# 静态资源目录
static_folder = './static'
# 静态资源链接
static_url_path = '/static'
# 创建flask app
app = Flask(__name__, template_folder=template_folder, static_folder=static_folder, static_url_path=static_url_path)
# app secret key
app.config['SECRET_KEY'] = 'whatthefucksafety'
# 网站名称
websiteName = "蘑菇丁自动云"
userAgents = [
"Mozilla/5.0 (iPhone; CPU iPhone OS 12_4_9 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/12.1.2 Mobile/15E148 Safari/604.1",
"Mozilla/5.0 (Linux; U; Android 11; zh-cn; Redmi K30 Pro Build/RKQ1.200826.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/79.0.3945.147 Mobile Safari/537.36 XiaoMi/MiuiBrowser/14.7.10",
"Mozilla/5.0 (Linux; Android 11; Redmi K30 Pro; GMSCore 21.02.14) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.93 HuaweiBrowser/11.1.1.301 Mobile Safari/537.36",
"Mozilla/5.0 (Linux; U; Android 11; zh-cn; Redmi K30 Pro Build/RKQ1.200826.002) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/77.0.3865.120 MQQBrowser/11.6 Mobile Safari/537.36 COVC/045635",
"Mozilla/5.0 (Linux; Android 11; Redmi K30 Pro Build/RKQ1.200826.002; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/76.0.3809.89 Mobile Safari/537.36 T7/12.17 SP-engine/2.32.0 baiduboxapp/12.18.0.10 (Baidu; P1 11) NABar/1.0",
"Mozilla/5.0 (Linux; Android 11; Redmi K30 Pro) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/77.0.3865.116 Mobile Safari/537.36 EdgA/45.09.4.5079"
]
request_header = {
"Host": "api.moguding.net:9000",
"accept-language": "zh-CN,zh;q=0.8",
"user-agent": "",
"sign": "",
"authorization": "",
"rolekey": "",
"content-type": "application/json; charset=UTF-8",
"accept-encoding": "gzip",
"cache-control": "no-cache"
}
scheduler = BackgroundScheduler(timezone='Asia/Shanghai')
# 熊猫代理API网址
proxyApiUrl = ""