Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
L
lcc-shape
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
wangmingming
lcc-shape
Commits
a7cbb9e8
Commit
a7cbb9e8
authored
Sep 05, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ff
parent
e08cbe29
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
7 deletions
+15
-7
jetblue.py
jetblue.py
+15
-7
No files found.
jetblue.py
View file @
a7cbb9e8
...
@@ -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)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment