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
08e95a81
Commit
08e95a81
authored
Jan 13, 2024
by
wangmingming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
111
parent
e48276da
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
24 additions
and
24 deletions
+24
-24
jetblue.py
jetblue.py
+9
-9
src.js
src.js
+15
-15
No files found.
jetblue.py
View file @
08e95a81
...
...
@@ -44,7 +44,7 @@ headers = {
"content-type"
:
"application/json"
,
"origin"
:
"https://www.southwest.com"
,
"pragma"
:
"no-cache"
,
"referer"
:
"https://www.southwest.com/air/booking/select.html?int=HOMEQBOMAIR&adultPassengersCount=1&departureDate=2023-09-21&destinationAirportCode=LAX&fareType=USD&originationAirportCode=LAS&passengerType=ADULT&promoCode=&returnDate=2023-09-24&tripType=roundtrip&from=&to=&adultsCount=1&departureTimeOfDay=ALL_DAY&reset=true&returnTimeOfDay=ALL_DAY"
,
#
"referer": "https://www.southwest.com/air/booking/select.html?int=HOMEQBOMAIR&adultPassengersCount=1&departureDate=2023-09-21&destinationAirportCode=LAX&fareType=USD&originationAirportCode=LAS&passengerType=ADULT&promoCode=&returnDate=2023-09-24&tripType=roundtrip&from=&to=&adultsCount=1&departureTimeOfDay=ALL_DAY&reset=true&returnTimeOfDay=ALL_DAY",
"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"
,
"x-api-key"
:
"l7xx944d175ea25f4b9c903a583ea82a1c4c"
,
"x-app-id"
:
"air-booking"
,
...
...
@@ -86,12 +86,12 @@ while True:
tlsV
=
f
'chrome_{random.randint(105, 113)}'
tlsV
=
'chrome_112'
session
=
tls_client
.
Session
(
tlsV
)
if
platform
.
uname
()
.
system
==
'Darwin'
:
proxy
=
'http://127.0.0.1:7890'
session
.
proxies
=
{
'http'
:
proxy
,
'https'
:
proxy
,
}
#
if platform.uname().system == 'Darwin':
# #
proxy = 'http://127.0.0.1:7890'
#
session.proxies = {
# 'http': 'http://127.0.0.1:7890'
,
# 'https': 'http://127.0.0.1:7890'
,
#
}
# selectId = 'a74b38e7115cf4d1b1f6976c'
c
=
session
.
get
(
'https://www.southwest.com/assets/app/scripts/swa-common.js'
,
insecure_skip_verify
=
True
)
.
text
m5
=
md5
(
c
)
...
...
@@ -114,10 +114,10 @@ while True:
# token = list(db.token_shape.aggregate( [ { '$sample': { 'size': 1 } } ] ))[0]['_id']
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
# r = requests.get('http://127.0.0.1:3001').json()
p
=
subprocess
.
Popen
([
'node'
,
'js_dom_run1.js'
,
selectId
,
'11'
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
#
p = subprocess.Popen(['node', 'js_dom_run1.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run_chrome_105.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run_company_chrome.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run1.js', selectId, '11', token
], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
p
=
subprocess
.
Popen
([
'node'
,
'src_run1.js'
,
selectId
,
'11'
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
output
,
err
=
p
.
communicate
(
timeout
=
10
)
...
...
src.js
View file @
08e95a81
No preview for this file type
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