声明
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!名字是绿泡泡!
逆向分析
cp = execjs.compile(open('饿了么.js','r',encoding='utf-8').read()) params["bx_et"] = cp.call('getBxet',....) new_url = f'{url}?{urllib.parse.urlencode(dict(params))}' print(params["bx_et"]) headers = { "accept": "application/json", "accept-language": "zh-CN,zh;q=0.9", "cache-control": "no-cache", "content-type": "application/x-www-form-urlencoded", "sec-ch-ua": "\"Microsoft Edge\";v=\"141\", \"Not?A_Brand\";v=\"8\", \"Chromium\";v=\"141\"", "sec-ch-ua-mobile": "?0", "sec-ch-ua-platform": "\"Windows\"", "sec-fetch-dest": "empty", "sec-fetch-mode": "cors", "sec-fetch-site": "same-site", "user-agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36 Edg/141.0.0.0", "x-decode-ua": "false", "x-secext-city": "-1" } resp = requests.get(new_url, headers=headers, cookies=cookies) print(resp.text[0:1000])
结果
![]()
总结