完整的是这样
[Python] 纯文本查看 复制代码 import requests
url1 = "https://zywy.caecp.cn/app/index.php?i=8&c=entry&do=api&uri=/user/Guard/Open&m=_xiaoqu&sign=3ee2858d6846adabdce515c891b4c2e8"
headers = {
'Host': 'zywy.caecp.cn',
'Accept': '*/*',
'X-Requested-With': 'XMLHttpRequest',
'Accept-Language': 'zh-CN,zh-Hans;q=0.9',
'Accept-Encoding': 'gzip,deflate,br',
'Content-Type': 'application/x-www-form-urlencoded;charset=UTF-8',
'Origin':'https://zywy.caecp.cn',
'User-Agent':'Mozilla/5.0(iPad;CPUOS15_2_1likeMacOSX)AppleWebKit/605.1.15(KHTML,likeGecko)Mobile/15E148MicroMessenger/8.0.32(0x18002037)NetType/WIFILanguage/zh_CN',
'Connection': 'keep-alive',
'Referer': 'https://zywy.caecp.cn/app/index.php?i=8&c=entry&m=lnapp_xiaoqu&do=opendoor&wxref=mp.weixin.qq.com',
'Content-Length': '12',
'Cookie': 'BMAP_SECKEY=fCMhwPRKqM9Wjv2_IQbobJwpRdnI_SglVzD2ljQi49jT-ACm2VEZGwUtX41kLilEi5kMF6LMFfU8yXRQGjukGwqvsIxcAheo0PO3DfhX_jPP9WjB9Kr009FSwyQeHYj76h4KSTrI7rNrImbDfxufEYSyL9y5mE5RZkQsd_3gWpk;SECKEY_ABVK=Fv60lonl1ISzLa2Q4CI9DEvf/H1AcWDEYz2pTY1gum0%3D'
}
data1 = {
'device_id': '19'
}
r1 = requests.post(url=url1, headers=headers, data=data1).json()
print(r1)
|