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
72425cbf
Commit
72425cbf
authored
Dec 26, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc test
parent
58c72a28
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
37 additions
and
23 deletions
+37
-23
main.py
wn/src/main.py
+18
-18
src_run1.js
wn/src/src_run1.js
+19
-5
No files found.
wn/src/main.py
View file @
72425cbf
...
...
@@ -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
=
1
5
# 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:
...
...
wn/src/src_run1.js
View file @
72425cbf
This source diff could not be displayed because it is too large. You can
view the blob
instead.
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