Commit 99fb4a97 authored by wang's avatar wang

wn fix

parent a68fcac2
......@@ -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",
"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)
......
No preview for this file type
......@@ -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)
// });
......@@ -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} ")
......@@ -156,7 +156,7 @@ setTimeout(r=> {
xhr.setRequestHeader('user-agent', ENV.navigatorparams.useragent)
print(JSON.stringify(xhr.headers))
_process.exit(0)
}, 1000)
}, 2000)
'''
......
This source diff could not be displayed because it is too large. You can view the blob instead.
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