请求接口
查询条件和请求参数
其中__NS_sig3是通过算法随机计算的
__NS_sig3: c3d394a483ee3bf5ed9e9d9c9a41f807aefa2fe1828280808f8e8d97
查询结果
将请求弄到python里,能请求出来
python的代码如下
import json
from curl_cffi import requests
import sig3
header = {
'Cookie':'kuaishou.web.cp.api_st=ChZrdWFpc2hvdS53ZWIuY3AuYXBpLnN0EqABFIdrU1UaIaRZO6xeycmuk3j_hhpO4cUGej57xRzn9BWAcNwiLFWnestez3V81sxxg6GOItrnY06gMjRfi7GXC53NYawDIOQih-iiNEk7oEfouCup0RigAsvZY2baAmnMZqeXw6jZT9OFkTQBy3zsVyE8q-kLNwGCPhrK6RoAO1FcVLE3nEZx2FfGYgelferGduP4M3kh1RaXwG95tleipxoSokGJ_bGyhpBLGLG-VVNC6GCKIiAZTCEUWaiz1c6RfqmXY00CI4jeH6BoMLxUwDQzz-f5GCgFMAE; kuaishou.web.cp.api_ph=d5439f2cbdd4db4a567c7df3e79e81ff08b7',
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36',
}
data = {
"kuaishou.web.cp.api_ph":"d5439f2cbdd4db4a567c7df3e79e81ff08b7",
"userId":"111"
}
url = f"https://jigou.kuaishou.com/rest/cp/org/member/manage/could_open_agreements?__NS_sig3={sig3.acctext(json.dumps(data).replace(' ',''))}"
fw = requests.post(url, json=data, headers=header)
print(fw.text)
??