声明:
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!
逆向过程
headers = {"accept": "*/*","accept-language": "zh-CN,zh;q=0.9","cache-control": "no-cache","pragma": "no-cache","referer": "","sec-fetch-dest": "script","sec-fetch-mode": "no-cors","sec-fetch-site": "same-site","user-agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 16_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.1 Edg/131.0.0.0"
}
cookies = {}
url = "/mtop.tmall.aselfpromotion.storedvaluecard.cardno.query/1.0/"
params = {"jsv": "2.6.1","appKey": s,"t": t,"sign": sign,"api": "mtop.tmall.aselfpromotion.storedvaluecard.cardno.query","v": "1.0","type": "jsonp","method": "GET","dataType": "jsonp","timeout": "20000","disableTracker": "true","preventFallback": "true","isSec": "1","callback": "mtopjsonp7","data": data
}
response = requests.get(url, headers=headers, cookies=cookies, params=params)
print(response.text)
结果
总结