声明
本文章中所有内容仅供学习交流使用,不用于其他任何目的,抓包内容、敏感网址、数据接口 等均已做脱敏处理,严禁用于商业用途和非法用途,否则由此产生的一切后果均与作者无关!
有相关问题请第一时间点击头像看简介或私信联系我删除博客!
部分python
if vt:
headers = {
'Accept': 'application/json, text/plain, */*',
'Accept-Language': 'zh-CN,zh;q=0.9',
'Cache-Control': 'no-cache',
'Connection': 'keep-alive',
'Content-Type': 'application/json',
'Origin': '',
'Pragma': 'no-cache',
'Referer': '',
'Sec-Fetch-Dest': 'empty',
'Sec-Fetch-Mode': 'cors',
'Sec-Fetch-Site': 'same-origin',
'X-Device-Token': '',
'X-Locale': 'zh-CN',
'customer-request-id': '',
'sec-ch-ua': '"Microsoft Edge";v="153", "Not_A Brand";v="8", "Chromium";v="153"',
'sec-ch-ua-mobile': '?0',
'sec-ch-ua-platform': '"Windows"',
'x-captcha-session': sessionId,
'x-captcha-token': vt,
}
# 4. 发送航班查询请求
# ============================================================
json_data = {
'params': cipher_hex,
'RequestParameterEncryptionIdentificationBit': True,
}
response = requests.post(
'/gateway/api/flight/list',
cookies=cookies,
headers=headers,
json=json_data
)
print(response.text[0:1000])
结果
