Commit a7cbb9e8 authored by wang's avatar wang

ff

parent e08cbe29
...@@ -29,15 +29,22 @@ envs = data.keys() ...@@ -29,15 +29,22 @@ envs = data.keys()
# session = requests.session() # session = requests.session()
headers = { headers = {
"Host": "jbrest.jetblue.com", "Accept": "application/json",
"application-channel": "Desktop_Web", "Accept-Language": "en-US,en;q=0.9",
"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", "Accept-Encoding": "gzip, deflate, br",
"api-version": "v3",
"application-channel": "Mobile_Web_iOS",
"booking-application-type": "NGB", "booking-application-type": "NGB",
"cache-control": "no-cache",
"content-type": "application/json", "content-type": "application/json",
"accept": "application/json", "pragma": "no-cache",
"origin": "https://www.jetblue.com", "Content-Length": "276",
"accept-language": "en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7" "Origin": "https://www.jetblue.com",
"Connection": "keep-alive",
"Sec-Fetch-Dest": "empty",
"Sec-Fetch-Mode": "cors",
"Sec-Fetch-Site": "same-site"
} }
lastHash = '' lastHash = ''
...@@ -135,6 +142,7 @@ for i in range(100): ...@@ -135,6 +142,7 @@ for i in range(100):
'https': proxy, 'https': proxy,
} }
print(proxy) print(proxy)
time.sleep(0.3)
response = session.post(url, headers=headers, json=data) response = session.post(url, headers=headers, json=data)
# print(response.text) # 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