大众点评 mtgsig
声明
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!
逆向过程。wx a15018601872
cp = execjs.compile(open('run.js','r',encoding='utf-8').read())
result = cp.call('getMtgsig',data1)
mtgsig = result['header']['mtgsig']
print(mtgsig)
params["yodaReady"]= "wx"
params["csecappid"]= ""
params["csecplatform"]= "3"
params["csecversionname"]= "9.82.0"
params["csecversion"]= "1.4.0"
headers = {
"Host": "apimeishi.meituan.com",
"wechatversion": "3.9.9",
"mtgsig": mtgsig,
"Content-Type": "application/json",
"xweb_xhr": "1",
"platformversion": "10 x64",
"channel": "weixin",
"platform": "Android",
"channelversion": "3.9.9",
"minaversion": "9.82.0",
"Accept": "/",
"Sec-Fetch-Site": "cross-site",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Dest": "empty",
"Accept-Language": "zh-CN,zh;q=0.9"
}
url = "poi/v1/shelf/0"
response = requests.get(url, headers=headers, params=params)
print(response.text)
print(response)
结果

总结
1.出于安全考虑,本章未提供完整流程,调试环节省略较多,只提供大致思路,具体细节要你自己还原,相信你也能调试出来。

浙公网安备 33010602011771号