Commit 1ba1353b authored by wangmingming's avatar wangmingming

Merge remote-tracking branch 'lcc/tk' into tk

# Conflicts:
#	wn/src/src_run1.js
parents e2145568 eaba6dff
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
No preview for this file type
......@@ -10,22 +10,22 @@
</html>
<script>
Date.now = function now() {
return 1693903208580
return 1703561132362
};
Date.parse = function () {
return 1693903208580
return 1703561132362
};
Date.prototype.valueOf = function () {
return 1693903208580
return 1703561132362
};
Date.prototype.getTime = function () {
return 1693903208580
return 1703561132362
};
Date.prototype.toString = function () {
return 1693903208580
return 1703561132362
};
Performance.prototype.now = function now() {
return Number('1693903208580'.slice(8))
return Number('1703561132362'.slice(8))
}
times = 0
Math.random = function random() {
......@@ -50,13 +50,13 @@
console.log(e)
})
// _join = Array.prototype.join;
// Array.prototype.join = function (s) {
// _print('join', this.length, this, s)
// let res = _join.call(this, s)
// _print('joinres', res)
// return res;
// }
_join = Array.prototype.join;
Array.prototype.join = function (s) {
_print('join', this.length, this, s)
let res = _join.call(this, s)
_print('joinres', res)
return res;
}
// _getOwnPropertyNames = Object.getOwnPropertyNames;
// Object.getOwnPropertyNames = function (a) {
// let res = _getOwnPropertyNames(a);
......
This diff is collapsed.
This diff is collapsed.
......@@ -12,7 +12,7 @@ RUN cd /home/opt/lcc-wn/ && npm i
COPY src/src.js /home/opt/lcc-wn/src.js
COPY src/jsdom /home/opt/lcc-wn/jsdom
COPY src/js_dom_run.js /home/opt/lcc-wn/js_dom_run.js
COPY src/jetblue.py /home/opt/lcc-wn/jetblue.py
COPY src/main.py /home/opt/lcc-wn/main.py
CMD ["python3", "main.py"]
......
......@@ -110,7 +110,7 @@ while True:
tlsV = f'chrome_{random.randint(105, 113)}'
tlsV = 'chrome_112'
session = tls_client.Session(tlsV)
session.timeout_seconds = 5
session.timeout_seconds = 15
# session = requests.session()
session.proxies = {
'http': proxy,
......@@ -152,25 +152,25 @@ while True:
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)
// _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)
print(JSON.stringify(xhr.headers))
_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)
# }, 2000)
)
code1 = open('js_dom_run.js','r').read()
# with open('js_dom_run1.js', 'w', encoding='utf-8') as f:
......
This diff is collapsed.
This diff is collapsed.
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