我找到了获取这个数据包了
url = 'https://www.abstractsonline.com/oe3/Backpack/create'
这数据包是给POST请求,但是发送请求都是的到400反馈
headers 和data 都是搬得抓到的包的来用,但一样是400反馈,求大神帮忙看看问题在哪import requests
# headers = { 'Accept': 'application/json',
# 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36'}
headers1 = {
'Accept': 'application/json',
'Accept-Encoding': 'gzip, deflate, br',
'Accept-Language': 'zh-CN,zh;q=0.9,en;q=0.8,en-GB;q=0.7,en-US;q=0.6',
'caller': 'debug',
'Connection': 'keep-alive',
'Content-Length': '62',
'Content-Type': 'application/json',
'Host': 'www.abstractsonline.com',
'Origin': 'https://cattendee.abstractsonline.com',
'Referer': 'https://cattendee.abstractsonline.com/',
'sec-ch-ua': '" Not A;Brand";v="99", "Chromium";v="101", "Microsoft Edge";v="101"',
'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/101.0.4951.64 Safari/537.36 Edg/101.0.1210.47',
}
url1 = r'https://www.abstractsonline.com/oe3/Backpack/create'
data = {"Username":"backpack","Password":"89j34jks98cnjks989p;nfs44"}
res = requests.session()
response = res.post(url1, headers=headers1, timeout=3, data=data)
|