Commit bc23a1c1 authored by wang's avatar wang

wn fix

parent 10e31944
...@@ -151,29 +151,29 @@ while True: ...@@ -151,29 +151,29 @@ while True:
} }
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); //xhr.open('POST', "https://www.southwest.com/api/air-booking/v1/air-booking/page/air/booking/shopping", false);
xhr.send(`{"tripType":"oneWay","from":"ZLA","to":"NAS","depart":"2023-04-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(`{"tripType":"oneWay","from":"ZLA","to":"NAS","depart":"2023-04-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.setRequestHeader('user-agent', ENV.navigatorparams.useragent)
//print(JSON.stringify(xhr.headers))
//_process.exit(0)
setTimeout(r= > {
var
xhr = new
XMLHttpRequest();
xhr.open('POST',
"https://www.southwest.com/api/air-booking/v1/air-booking/page/air/booking/shopping",
false);
xhr.send(`{"tripType": "oneWay", "from": "ZLA", "to": "NAS", "depart": "2023-04-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.setRequestHeader('user-agent', ENV.navigatorparams.useragent) xhr.setRequestHeader('user-agent', ENV.navigatorparams.useragent)
print(JSON.stringify(xhr.headers)) print(JSON.stringify(xhr.headers))
_process.exit(0) _process.exit(0)
}, 1000)
''' '''
# setTimeout(r= > {
# var
# xhr = new
# XMLHttpRequest();
# xhr.open('POST',
# "https://www.southwest.com/api/air-booking/v1/air-booking/page/air/booking/shopping",
# false);
# xhr.send(`{"tripType": "oneWay", "from": "ZLA", "to": "NAS", "depart": "2023-04-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.setRequestHeader('user-agent', ENV.navigatorparams.useragent)
# print(JSON.stringify(xhr.headers))
# _process.exit(0)
# }, 1000)
) )
code1 = open('js_dom_run.js','r').read() code1 = open('js_dom_run.js','r').read()
# with open('js_dom_run1.js', 'w', encoding='utf-8') as f: # with open('js_dom_run1.js', 'w', encoding='utf-8') as f:
......
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