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
588d54ad
Commit
588d54ad
authored
Sep 20, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收集更多信息
parent
29ea21f5
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
jetblue.py
jetblue.py
+3
-4
src_run_company_chrome.js
src_run_company_chrome.js
+3
-1
No files found.
jetblue.py
View file @
588d54ad
...
@@ -97,14 +97,13 @@ for i in range(100):
...
@@ -97,14 +97,13 @@ for i in range(100):
# # with open('js_dom_run1.js', 'w', encoding='utf-8') as f:
# # with open('js_dom_run1.js', 'w', encoding='utf-8') as f:
# # f.write(code1 + '\n\n' + c)`
# # f.write(code1 + '\n\n' + c)`
t1
=
time
.
time
()
t1
=
time
.
time
()
token
=
list
(
db
.
token_shape
.
aggregate
(
[
{
'$sample'
:
{
'size'
:
1
}
}
]
))[
0
][
'_id'
]
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
# r = requests.get('http://127.0.0.1:5000/getinfo').json()['message']
# r = requests.get('http://127.0.0.1:3001').json()
# 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', '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_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_company_chrome.js'
,
selectId
,
'11'
,
token
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
token
=
list
(
db
.
token_shape
.
aggregate
(
[
{
'$sample'
:
{
'size'
:
1
}
}
]
))[
0
][
'_id'
]
# 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
)
stderr
=
subprocess
.
PIPE
)
output
,
err
=
p
.
communicate
(
timeout
=
10
)
output
,
err
=
p
.
communicate
(
timeout
=
10
)
tmp
=
''
tmp
=
''
...
...
src_run_company_chrome.js
View file @
588d54ad
No preview for this file type
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