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
b87a0a4e
Commit
b87a0a4e
authored
Oct 18, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wn test
parent
ccae1cd4
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
84 additions
and
43 deletions
+84
-43
jetblue.py
b6/src/jetblue.py
+2
-2
src.js
b6/src/src.js
+25
-25
index.html
index.html
+57
-16
No files found.
b6/src/jetblue.py
View file @
b87a0a4e
...
...
@@ -140,10 +140,10 @@ while True:
# token = '11'
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
# r = requests.get('http://127.0.0.1:3001').json()
p
=
subprocess
.
Popen
([
'node'
,
'js_dom_run1.js'
,
selectId
,
'11'
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
#
p = subprocess.Popen(['node', 'js_dom_run1.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run_chrome_105.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run_company_chrome.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
#
p = subprocess.Popen(['node', 'src_run1.js', selectId, '11', token], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
p
=
subprocess
.
Popen
([
'node'
,
'src_run1.js'
,
selectId
,
'11'
,
token
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
stderr
=
subprocess
.
PIPE
)
output
,
err
=
p
.
communicate
(
timeout
=
10
)
tmp
=
''
...
...
b6/src/src.js
View file @
b87a0a4e
No preview for this file type
index.html
View file @
b87a0a4e
...
...
@@ -9,32 +9,70 @@
</body>
</html>
<script>
Date
.
now
=
function
now
()
{
return
1693903208580
};
Date
.
parse
=
function
()
{
return
1693903208580
};
Date
.
prototype
.
valueOf
=
function
()
{
return
1693903208580
};
Date
.
prototype
.
getTime
=
function
()
{
return
1693903208580
};
Date
.
prototype
.
toString
=
function
()
{
return
1693903208580
};
Performance
.
prototype
.
now
=
function
now
(){
return
Number
(
'1693903208580'
.
slice
(
8
))}
Date
.
now
=
function
now
()
{
return
1693903208580
};
Date
.
parse
=
function
()
{
return
1693903208580
};
Date
.
prototype
.
valueOf
=
function
()
{
return
1693903208580
};
Date
.
prototype
.
getTime
=
function
()
{
return
1693903208580
};
Date
.
prototype
.
toString
=
function
()
{
return
1693903208580
};
Performance
.
prototype
.
now
=
function
now
()
{
return
Number
(
'1693903208580'
.
slice
(
8
))
}
times
=
0
Math
.
random
=
function
random
()
{
return
0.08636862211354912
};
Math
.
random
=
function
random
()
{
return
0.08636862211354912
};
_print
=
console
.
log
stackTrace
=
[];
con3
=
function
(){
if
(
window
.
debug1
){
con3
=
function
()
{
if
(
window
.
debug1
)
{
_print
(...
arguments
)
}
}
con4
=
function
(){
if
(
window
.
debug1
){
con4
=
function
()
{
if
(
window
.
debug1
)
{
_print
(...
arguments
)
}
}
idx
=
0
addEventListener
(
'DOMContentLoaded'
,
function
(
e
){
addEventListener
(
'DOMContentLoaded'
,
function
(
e
)
{
debugger
;
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
;
}
_getOwnPropertyNames
=
Object
.
getOwnPropertyNames
;
Object
.
getOwnPropertyNames
=
function
(
a
)
{
let
res
=
_getOwnPropertyNames
(
a
);
_print
(
'getOwnPropertyNames'
,
a
,
res
)
return
res
;
}
var
_hasOwnProperty
=
Object
.
hasOwnProperty
;
Object
.
hasOwnProperty
=
function
()
{
let
res
=
_hasOwnProperty
.
apply
(
this
,
arguments
);
_print
(
'Object.hasOwnProperty'
,
arguments
,
res
===
undefined
);
return
res
;
}
</script>
<script
src=
"src_out.js"
></script>
<!--<script src="env/get_pixels.js"></script>-->
...
...
@@ -44,7 +82,8 @@
function
sendXHr
()
{
var
xhr
=
new
XMLHttpRequest
();
let
h
=
{
"accept"
:
"application/json"
,
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"
,
...
...
@@ -57,9 +96,10 @@
for
(
let
hKey
in
h
)
{
xhr
.
setRequestHeader
(
hKey
,
h
[
hKey
])
}
try
{
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}"'
);
}
catch
(
e
){}
}
catch
(
e
)
{
}
console
.
log
(
xhr
.
headers
)
return
xhr
.
headers
}
...
...
@@ -83,6 +123,7 @@
debugger
try
{
sendXHr
()
}
catch
(
e
){}
}
catch
(
e
)
{
}
console
.
log
(
'结束times'
,
window
.
times
)
</script>
\ No newline at end of file
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