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
99fb4a97
Commit
99fb4a97
authored
Jan 11, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wn fix
parent
a68fcac2
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
2711 additions
and
2644 deletions
+2711
-2644
index.html
index.html
+37
-9
js_dom_run.js
js_dom_run.js
+2
-1
src_out.js
src_out.js
+25
-28
main.py
wn/src/main.py
+4
-4
src.js
wn/src/src.js
+2643
-2602
No files found.
index.html
View file @
99fb4a97
...
...
@@ -84,21 +84,49 @@
var
xhr
=
new
XMLHttpRequest
();
let
h
=
{
"accept"
:
"application/json"
,
"accept-language"
:
"en-US,en;q=0.9,zh-CN;q=0.8,zh;q=0.7"
,
"api-version"
:
"v3"
,
"application-channel"
:
"Desktop_Web"
,
"booking-application-type"
:
"NGB"
,
"cache-control"
:
"no-cache"
,
"content-type"
:
"application/json"
,
"Host"
:
"www.southwest.com"
,
"sec-ch-ua"
:
"
\"
Not_A Brand
\"
;v=
\"
8
\"
,
\"
Chromium
\"
;v=
\"
120
\"
,
\"
Google Chrome
\"
;v=
\"
120
\"
"
,
"sec-ch-ua-platform"
:
"
\"
macOS
\"
"
,
"x-channel-id"
:
"southwest"
,
"x-app-id"
:
"air-booking"
,
"x-swa-di-pid"
:
"6220143449988117"
,
"sec-ch-ua-mobile"
:
"?0"
,
"user-agent"
:
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36"
,
"content-type"
:
"application/json"
,
"accept"
:
"application/json, text/javascript, */*; q=0.01"
,
"x-api-key"
:
"l7xx944d175ea25f4b9c903a583ea82a1c4c"
,
"origin"
:
"https://www.southwest.com"
,
"sec-fetch-site"
:
"same-origin"
,
"sec-fetch-mode"
:
"cors"
,
"sec-fetch-dest"
:
"empty"
,
"accept-language"
:
"en,en-US;q=0.9,zh-CN;q=0.8,zh;q=0.7,ru;q=0.6"
}
xhr
.
open
(
'POST'
,
"https://
jbrest.jetblue.com/lfs-rwb/outboundLFS
"
,
false
);
xhr
.
open
(
'POST'
,
"https://
www.southwest.com/api/air-booking/v1/air-booking/page/air/booking/shopping
"
,
false
);
for
(
let
hKey
in
h
)
{
xhr
.
setRequestHeader
(
hKey
,
h
[
hKey
])
}
try
{
xhr
.
send
(
'{
\
"tripType
\
":
\
"oneWay
\
",
\
"from
\
":
\
"ZLA
\
",
\
"to
\
":
\
"NAS
\
",
\
"depart
\
":
\
"2023-05-11
\
",
\
"cabin
\
":
\
"economy
\
",
\
"refundable
\
":false,
\
"dates
\
":{
\
"before
\
":
\
"3
\
",
\
"after
\
":
\
"3
\
"},
\
"pax
\
":{
\
"ADT
\
":1,
\
"CHD
\
":0,
\
"INF
\
":0,
\
"UNN
\
":0},
\
"redempoint
\
":false,
\
"pointsBreakup
\
":{
\
"option
\
":
\
"
\
",
\
"value
\
":0},
\
"isMultiCity
\
":false}"'
);
xhr
.
send
(
JSON
.
stringify
({
"originationAirportCode"
:
"LAS"
,
"destinationAirportCode"
:
"BOS"
,
"departureDate"
:
"2024-07-13"
,
"departureTimeOfDay"
:
"ALL_DAY"
,
"returnTimeOfDay"
:
"ALL_DAY"
,
"adultPassengersCount"
:
"1"
,
"tripType"
:
"oneway"
,
"fareType"
:
"POINTS"
,
"passengerType"
:
"ADULT"
,
"adultsCount"
:
"1"
,
"int"
:
"HOMEQBOMAIR"
,
"reset"
:
"true"
,
"lapInfantPassengersCount"
:
"0"
,
"returnDate"
:
""
,
"application"
:
"air-booking"
,
"site"
:
"southwest"
}));
}
catch
(
e
)
{
}
console
.
log
(
xhr
.
headers
)
...
...
js_dom_run.js
View file @
99fb4a97
No preview for this file type
src_out.js
View file @
99fb4a97
...
...
@@ -3458,32 +3458,29 @@ Object.defineProperty = function (p, v, d) {
// xhr.open('POST', "https://www.southwest.com/api/air-booking/v1/air-booking/page/air/booking/shopping", false);
fetch
(
"https://www.southwest.com/api/air-booking/v1/air-booking/page/air/booking/shopping"
,
{
"headers"
:
{
"accept"
:
"application/json"
,
"accept-language"
:
"en-US,en;q=0.9"
,
"api-version"
:
"v3"
,
"application-channel"
:
"Mobile_Web_iOS"
,
"booking-application-type"
:
"NGB"
,
"cache-control"
:
"no-cache"
,
"content-type"
:
"application/json"
,
"pragma"
:
"no-cache"
,
"sec-ch-ua"
:
"
\"
Not/A)Brand
\"
;v=
\"
99
\"
,
\"
Google Chrome
\"
;v=
\"
115
\"
,
\"
Chromium
\"
;v=
\"
115
\"
"
,
"sec-ch-ua-mobile"
:
"?0"
,
"sec-ch-ua-platform"
:
"
\"
macOS
\"
"
,
"sec-fetch-dest"
:
"empty"
,
"sec-fetch-mode"
:
"cors"
,
"sec-fetch-site"
:
"same-site"
,
},
"referrer"
:
"https://www.jetblue.com/booking/flights?from=LGA&to=LAX&depart=2023-10-16&isMultiCity=false&noOfRoute=1&lang=en&adults=1&children=0&infants=0&sharedMarket=false&roundTripFaresFlag=false&usePoints=false"
,
"referrerPolicy"
:
"no-referrer-when-downgrade"
,
"body"
:
"{
\"
tripType
\"
:
\"
oneWay
\"
,
\"
from
\"
:
\"
LGA
\"
,
\"
to
\"
:
\"
LAX
\"
,
\"
depart
\"
:
\"
2023-05-26
\"
,
\"
cabin
\"
:
\"
economy
\"
,
\"
refundable
\"
:false,
\"
dates
\"
:{
\"
before
\"
:
\"
3
\"
,
\"
after
\"
:
\"
3
\"
},
\"
pax
\"
:{
\"
ADT
\"
:1,
\"
CHD
\"
:0,
\"
INF
\"
:0,
\"
UNN
\"
:0},
\"
redempoint
\"
:false,
\"
pointsBreakup
\"
:{
\"
option
\"
:
\"\"
,
\"
value
\"
:0},
\"
isMultiCity
\"
:false,
\"
isDomestic
\"
:true}"
,
"method"
:
"POST"
,
"mode"
:
"cors"
,
"credentials"
:
"omit"
}).
then
(
r
=>
{
return
r
.
text
()
}).
then
(
r
=>
{
console
.
log
(
r
)
});
// fetch("https://www.southwest.com/api/air-booking/v1/air-booking/page/air/booking/shopping", {
// "headers": {
// "accept": "application/json",
// "accept-language": "en-US,en;q=0.9",
// "api-version": "v3",
// "application-channel": "Mobile_Web_iOS",
// "booking-application-type": "NGB",
// "cache-control": "no-cache",
// "content-type": "application/json",
// "pragma": "no-cache",
// "x-api-key": "l7xx944d175ea25f4b9c903a583ea82a1c4c",
// "user-agent": "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/116.0.0.0 Safari/537.36 Edg/116.0.1938.69",
//
// },
// "referrer": "https://www.jetblue.com/booking/flights?from=LGA&to=LAX&depart=2023-10-16&isMultiCity=false&noOfRoute=1&lang=en&adults=1&children=0&infants=0&sharedMarket=false&roundTripFaresFlag=false&usePoints=false",
// "referrerPolicy": "no-referrer-when-downgrade",
// "body": '{"originationAirportCode":"LAS","destinationAirportCode":"BOS","departureDate":"2024-07-13","departureTimeOfDay":"ALL_DAY","returnTimeOfDay":"ALL_DAY","adultPassengersCount":"1","tripType":"oneway","fareType":"POINTS","passengerType":"ADULT","adultsCount":"1","int":"HOMEQBOMAIR","reset":"true","lapInfantPassengersCount":"0","returnDate":"","application":"air-booking","site":"southwest"}',
// "method": "POST",
// "mode": "cors",
// "credentials": "omit"
// }).then(r => {
// return r.text()
// }).then(r => {
// console.log(r)
// });
wn/src/main.py
View file @
99fb4a97
...
...
@@ -90,11 +90,11 @@ while True:
# proxy = requests.post('http://ymx-lcc.unififi.com/proxy/get-proxy', json={'name':"B6", 'type':'shopping'}).json()['url']
# proxy = f'http://ynfflcc2023.hotmail.com:gdcfh9@69.30.227.194:{random.randint(20001, 20250)}'
proxy2
=
f
'http://user-uni003-region-us-sessid-${random.randint(1000,5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
#
proxy2 = f'http://user-uni003-region-us-sessid-${random.randint(1000,5000)}-sesstime-5-keep-true:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
# proxy = f'http://unfflcc:76cc14-47b8dd-1f8ace-827836-0c740e@198.147.25.26:{int(random.randint(10000, 11149))}'
# proxy = 'http://user-unifflcc-region-us:q39CEBTs5A5YQXor@pr.roxlabs.cn:4600'
tlsV
=
f
'chrome_{random.randint(105, 113)}'
proxy
=
random
.
choice
([
proxy1
,
proxy2
])
#
proxy = random.choice([proxy1, proxy2])
logger
.
info
(
f
"success:{success} proxy: {proxy} "
)
...
...
@@ -145,7 +145,7 @@ while True:
//print(JSON.stringify(xhr.headers))
//_process.exit(0)
setTimeout(r=> {
var xhr = new XMLHttpRequest();
var xhr = new XMLHttpRequest();
xhr.open('POST',
"https://www.southwest.com/api/air-booking/v1/air-booking/page/air/booking/shopping",
false);
...
...
@@ -156,7 +156,7 @@ setTimeout(r=> {
xhr.setRequestHeader('user-agent', ENV.navigatorparams.useragent)
print(JSON.stringify(xhr.headers))
_process.exit(0)
},
1
000)
},
2
000)
'''
...
...
wn/src/src.js
View file @
99fb4a97
This diff is collapsed.
Click to expand it.
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