抓取
cat-match.easygame2021.com
的请求包内 Header 为t
的内容
需要给手机设置一个代理,然后用电脑代理进行抓包。
实际可以参考这篇文章
https://blog.csdn.net/moonfish0607/article/details/88419278
微信小游戏抓包分析
需要下载node与npm,并执行
npm install axios
const axios = require('axios')
const url = 'https://cat-match.easygame2021.com/sheep/v1/game/game_over'
const params = {
"rank_score": "1",
"rank_state": "1",
"rank_time": 1,//通关时间
"rank_role": "1",
"skin": "1"
}
const headers = {
'Host': 'cat-match.easygame2021.com',
'Accept-Encoding': 'gzip,compress,br,deflate',
'Content-Type': 'application/json',
"User-Agent": "Mozilla/5.0 (iPhone; CPU iPhone OS 15_6 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Mobile/15E148 MicroMessenger/8.0.28(0x18001c25) NetType/WIFI Language/zh_CN",
"Referer": "https://servicewechat.com/wx141bfb9b73c970a9/15/page-frame.html",
"t": "你的token!"//注意!!这是需要填写的
}
axios({
method: 'get',
url: url,
params,
headers
}).then(res => {
console.log(res.data)
})
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。
原创声明:本文系作者授权腾讯云开发者社区发表,未经许可,不得转载。
如有侵权,请联系 cloudcommunity@tencent.com 删除。