Commit a7cbb9e8 authored by wang's avatar wang

ff

parent e08cbe29
......@@ -29,15 +29,22 @@ envs = data.keys()
# session = requests.session()
headers = {
"Host": "jbrest.jetblue.com",
"application-channel": "Desktop_Web",
"user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/114.0.0.0 Safari/537.36",
headers = {
"Accept": "application/json",
"Accept-Language": "en-US,en;q=0.9",
"Accept-Encoding": "gzip, deflate, br",
"api-version": "v3",
"application-channel": "Mobile_Web_iOS",
"booking-application-type": "NGB",
"cache-control": "no-cache",
"content-type": "application/json",
"accept": "application/json",
"origin": "https://www.jetblue.com",
"accept-language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7"
"pragma": "no-cache",
"Content-Length": "276",
"Origin": "https://www.jetblue.com",
"Connection": "keep-alive",
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "same-site"
}
lastHash = ''
......@@ -135,6 +142,7 @@ for i in range(100):
'https': proxy,
}
print(proxy)
time.sleep(0.3)
response = session.post(url, headers=headers, json=data)
# print(response.text)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment