知乎/zhihu接口x-zse-96,__zse_ck签名的代码环境补,算法全流程分析
声明
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!
侵权通过头像私信或名字简介叫我删除博客谢谢。
部分python代码
result = subprocess.run( ["node", "test2.js", content], # 传入 content 作为参数 capture_output=True, text=True, timeout=10 # 防止卡死 ) __zse_ck = result.stdout.strip() print(f"[*] __zse_ck: {__zse_ck}") cookies['__zse_ck'] = f'{__zse_ck}' headers = { "accept": "*/*", "accept-language": "zh-CN,zh;q=0.9", "cache-control": "no-cache", "pragma": "no-cache", } url = "api/v3/moments/hfghh-3/activities" params = { "limit": "5", "desktop": "true", "ws_qiangzhisafe": "0" } response = session.get(url, headers=headers, cookies=cookies, params=params) print(response.text) print(response)result = subprocess.run(
["node", "test2.js", content], # 传入 content 作为参数
capture_output=True,
text=True,
timeout=10 # 防止卡死
)
__zse_ck = result.stdout.strip()
print(f"[*] __zse_ck: {__zse_ck}")
cookies['__zse_ck'] = f'{__zse_ck}'
headers = {
"accept": "*/*",
"accept-language": "zh-CN,zh;q=0.9",
"cache-control": "no-cache",
"pragma": "no-cache",
}
url = "api/v3/moments/hfghh-3/activities"
params = {
"limit": "5",
"desktop": "true",
"ws_qiangzhisafe": "0"
}
response = session.get(url, headers=headers, cookies=cookies, params=params)
print(response.text)
print(response)
