加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
config.py 1.79 KB
一键复制 编辑 原始数据 按行查看 历史
duandj 提交于 2022-03-30 17:58 . session
"""
请求头
"""
DEFAULT_HEADERS = {
'ost': 'zhiyou.smzdm.com',
'User-Agent': 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:92.0) Gecko/20100101 Firefox/92.0',
'Accept': '*/*',
'Accept-Language': 'zh-CN,zh;q=0.8,zh-TW;q=0.7,zh-HK;q=0.5,en-US;q=0.3,en;q=0.2',
'Accept-Encoding': 'gzip, deflate, br',
'DNT': '1',
'Connection': 'keep-alive',
'Referer': 'https://www.smzdm.com/',
'Sec-Fetch-Dest': 'script',
'Sec-Fetch-Mode': 'no-cors',
'Sec-Fetch-Site': 'same-site',
'Pragma': 'no-cache',
'Cache-Control': 'no-cache',
}
"""
调试用 COOKIE
"""
TEST_COOKIE = 'TEST_COOKIE = '__ckguid=EvK5CjNuKEgPyISoksfJXR5; __jsluid_s=c842f4226974d8eac4d4d3a6e4a7cc88; r_sort_type=score; _ga=GA1.1.1188986577.1626232182; _ga_09SRZM2FDD=GS1.1.1637123162.11.0.1637123162.0; device_id=33957723541637390959484941c2a4f14aecf637d556b87a53db24fc1b; smzdm_user_source=964015B7180DA12B0E63942F119DF902; homepage_sug=a; Hm_lvt_9b7ac3d38f30fe89ff0b8a0546904e58=1645694982; sensorsdata2015jssdkcross=%7B%22distinct_id%22%3A%228785525449%22%2C%22first_id%22%3A%2217a14091a5b382-03e0d0abef181e-4373266-921600-17a14091a5caa9%22%2C%22props%22%3A%7B%22%24latest_traffic_source_type%22%3A%22%E7%9B%B4%E6%8E%A5%E6%B5%81%E9%87%8F%22%2C%22%24latest_search_keyword%22%3A%22%E6%9C%AA%E5%8F%96%E5%88%B0%E5%80%BC_%E7%9B%B4%E6%8E%A5%E6%89%93%E5%BC%80%22%2C%22%24latest_referrer%22%3A%22%22%7D%2C%22%24device_id%22%3A%2217a14091a5b382-03e0d0abef181e-4373266-921600-17a14091a5caa9%22%7D; sess=AT-n8h5dhEzEFDpJDx9LJ5fe6Lvx6Wia1ehV76%2BIpc6IohTN0UwJ9dLGXwUf33r9RmZdwziuHSLzzMInX4nYKnEHmz5XZHdrJsRY%2FxNx5Yd4v9ddOtaRQ006wSZ; user=pizad%7C8785525449; smzdm_id=8785525449; _zdmA.uid=ZDMA.qMs3XbwcQ.1646037933.2419200; Hm_lpvt_9b7ac3d38f30fe89ff0b8a0546904e58=1646037933'
"""
调试用 SERVERCHAN_SECRETKEY
"""
SERVERCHAN_SECRETKEY = 'SCT124984TElS410xRXN7Od50zRQ9J72ip'
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化