generated from sanyue3/chaoxing_action
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
48 lines (39 loc) · 1.2 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
import os
# =================配置区start===================
# 学习通账号密码
USER_INFO = {
'username': os.getenv("USER"),
'password': os.getenv("PASSWORD"),
'schoolid': '' # 学号登录才需要填写
}
# server酱
SERVER_CHAN_SCKEY = os.getenv("SECRET") # 申请地址http://sc.ftqq.com/3.version
SERVER_CHAN = {
'status': True, # 如果关闭server酱功能,请改为False
'url': 'https://sc.ftqq.com/{}.send'.format(SERVER_CHAN_SCKEY)
}
# 当到达时间持续轮询签到任务的时间
RUN_TIME = int(os.getenv("RUN_TIME"))
# 学习通账号cookies缓存文件路径
COOKIES_PATH = "./"
COOKIES_FILE_PATH = COOKIES_PATH + "cookies.json"
# activeid保存文件路径
ACTIVEID_PATH = "./"
ACTIVEID_FILE_PATH = ACTIVEID_PATH + "activeid.json"
# 拍照签到的图片文件
IMAGE_PATH = "./image/"
# 位置信息
latitude = os.getenv("LATITUDE")
longitude = os.getenv("LONGITUDE")
# ip地址
clientip = "0.0.0.0"
# 状态码
STATUS_CODE_DICT = {
1000: '登录成功',
1001: '登录信息有误',
1002: '拒绝访问',
2000: '当前暂无签到任务',
2001: '有任务且签到成功',
4000: '未知错误'
}
# =================配置区end===================