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
72428c7b
Commit
72428c7b
authored
Sep 12, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
适配不同版本 chrome
parent
1d40afe5
Changes
5
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
1834 additions
and
399 deletions
+1834
-399
jetblue.py
jetblue.py
+4
-3
js_dom_run.js
js_dom_run.js
+1805
-380
src_out.js
src_out.js
+4
-4
src_run_company_chrome.js
src_run_company_chrome.js
+3
-3
sss.js
sss.js
+18
-9
No files found.
jetblue.py
View file @
72428c7b
...
...
@@ -91,8 +91,8 @@ for i in range(100):
t1
=
time
.
time
()
# 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_run.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
p
=
subprocess
.
Popen
([
'node'
,
'src_run_chrome_105.js'
,
selectId
,
'11'
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
p
=
subprocess
.
Popen
([
'node'
,
'js_dom_run.js'
,
selectId
,
'11'
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
#
p = subprocess.Popen(['node', 'src_run_chrome_105.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run_company_chrome.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
# p = subprocess.Popen(['node', 'src_run.js', selectId, '11'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
stderr
=
subprocess
.
PIPE
)
...
...
@@ -103,7 +103,7 @@ for i in range(100):
if
p
.
returncode
==
0
:
tmp
=
output
.
decode
()
.
split
(
'
\n
'
)[
-
2
]
else
:
raise
Exception
(
"执行js失败"
)
raise
Exception
(
selectId
)
r
=
json
.
loads
(
tmp
)
res
=
db
.
env_shape
.
update_one
(
{
'_id'
:
ObjectId
(
selectId
)},
...
...
@@ -114,6 +114,7 @@ for i in range(100):
headers
.
update
(
r
)
# headers = r
logger
.
info
(
f
"success:{success} {(time.time() - t1) *1000:.3f}ms {len(headers['X-1ItxWO9i-a'.lower()])} {selectId} {headers['user-agent']}"
)
logger
.
info
(
f
"success:{success} {(time.time() - t1) *1000:.3f}ms {headers['X-1ItxWO9i-a'.lower()]}"
)
url
=
"https://jbrest.jetblue.com/lfs-rwb/outboundLFS"
data
=
{
"tripType"
:
"oneWay"
,
...
...
js_dom_run.js
View file @
72428c7b
This diff is collapsed.
Click to expand it.
src_out.js
View file @
72428c7b
This diff is collapsed.
Click to expand it.
src_run_company_chrome.js
View file @
72428c7b
...
...
@@ -65,7 +65,7 @@ let sid = process.argv[2] || 'a74b38e7115cf4d1b1f6976c';
if (process.argv[3]){
console.log = function(){}
}
// sid = 'b23a384acc5b644691d1cd01'
// sid = "b93e97591189a5841d0288ba"
let ENV = ENVS[sid]
...
...
@@ -8428,8 +8428,8 @@ let aa = false;
window.TouchEvent = TouchEvent
if (ENV.navigatorparams.useragent.indexOf('Firefox') > -1){
//
if (1===1){
//
if (ENV.navigatorparams.useragent.indexOf('Firefox') > -1){
if (1===1){
window.netscape = {}
}else{
window.TouchEvent = TouchEvent
sss.js
View file @
72428c7b
This diff is collapsed.
Click to expand it.
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