-
Notifications
You must be signed in to change notification settings - Fork 90
/
settings.py
25 lines (19 loc) · 1.16 KB
/
settings.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
# -*- encoding: utf-8 -*-
# !/usr/bin/python3
# @Time : 2019/6/21 11:15
# @File : settings.py
SLEEP_TIME = 10 # 调用时建议使用的睡眠时间,以免账号被限制,大于等于10
UPDATE_DELAY = 3 # 数据更新速度,不宜过快
UPDATE_STOP = 60 # 数据暂停更新时间
USER_AGENT_WECHAT = "Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/53.0.2785.116 Safari/537.36 QBCore/3.53.1159.400 QQBrowser/9.0.2524.400 Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.95 Safari/537.36 MicroMessenger/6.5.2.501 NetType/WIFI WindowsWechat"
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"
WX_REDIS_CONFIG = {
'host': 'localhost',
'password': None,
'port': 6379,
'db': 0,
'decode_responses': True,
}
WX_UPDATE_TIME = 60 * 60 * 24 # 对文章数据更新的频次, 默认一天更新一轮
WX_NOT_UPDATE_TIME = 60 * 60 * 24 * 7 # 停止文章数据更新的最大时间期限, 默认更新七天内的数据
WX_CHAT_WND_NAME = "文件传输助手" # 微信PC版消息发送窗口