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
0111d37f
Commit
0111d37f
authored
Sep 04, 2024
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ws 测试
parent
d80de2fa
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
47 additions
and
47 deletions
+47
-47
main.py
ws/src/main.py
+47
-47
No files found.
ws/src/main.py
View file @
0111d37f
...
...
@@ -241,7 +241,7 @@ while True:
selectId
=
random
.
choice
(
list
(
envs
))
# selectId = '197d94c3099d110aef4e0a52'
# if usedTime > 1
:
if
usedTime
>
5
:
# c = session.get('https://www.westjet.com/assets/app/scripts/swa-common.js').text
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
json
=
dict
(
url
=
'https://www.westjet.com/resources/js/wj_common.js'
,
headers
=
headers
,
method
=
"GET"
,
proxy
=
proxy
,
debug
=
True
...
...
@@ -250,10 +250,10 @@ while True:
c1
=
response
.
json
()[
'text'
]
m5
=
md5
(
c1
)
ck
=
response
.
json
()[
'cookies'
][
'z0t0U8fo'
]
#
if m5 != lastHash:
#
lastHash = m5
#
usedTime = 0
#
logger.debug('js变化')
if
m5
!=
lastHash
:
lastHash
=
m5
usedTime
=
0
logger
.
debug
(
'js变化'
)
js_uri
=
re
.
findall
(
'(https://www
\
.westjet
\
.com/resources/.+?)"'
,
c1
)[
0
]
logger
.
info
(
f
'get {js_uri}'
)
response
=
requests
.
post
(
'http://52.52.23.116/tls/forward'
,
...
...
@@ -268,7 +268,7 @@ while True:
+
';;;
\n\n
'
+
'''
setTimeout(r=> {
setTimeout(r=> {
var
xhr = new
XMLHttpRequest();
...
...
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