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
91f5648b
Commit
91f5648b
authored
Sep 19, 2023
by
wang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收集更多信息
parent
ef41556a
Changes
4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
362 additions
and
138 deletions
+362
-138
env.json
env.json
+1
-1
jetblue.py
jetblue.py
+2
-4
src.js
src.js
+186
-74
src_run.js
src_run.js
+173
-59
No files found.
env.json
View file @
91f5648b
This diff is collapsed.
Click to expand it.
jetblue.py
View file @
91f5648b
...
@@ -25,10 +25,10 @@ client = MongoClient('mongodb://lcc-spider:JIUsfhiad&^@18.144.59.80:27017/?authS
...
@@ -25,10 +25,10 @@ client = MongoClient('mongodb://lcc-spider:JIUsfhiad&^@18.144.59.80:27017/?authS
db
=
client
.
env
db
=
client
.
env
# 查询所有文档
# 查询所有文档
# result = db.env_shape.find({'env.
navigatorparams.useragent':{'$regex': 'Firefox'
}})
# result = db.env_shape.find({'env.
funcs' :{'$ne': None
}})
# data = {str(x['_id']): x['env'] for x in result}
# data = {str(x['_id']): x['env'] for x in result}
# print(result)
# print(result)
# with open('
ff
.json', 'w', encoding='utf-8') as f:
# with open('
env
.json', 'w', encoding='utf-8') as f:
# f.write(json.dumps(data))
# f.write(json.dumps(data))
with
open
(
'env.json'
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
with
open
(
'env.json'
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
data
=
json
.
loads
(
f
.
read
())
data
=
json
.
loads
(
f
.
read
())
...
@@ -96,8 +96,6 @@ for i in range(100):
...
@@ -96,8 +96,6 @@ for i in range(100):
# 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'], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
p
=
subprocess
.
Popen
([
'node'
,
'src_run1.js'
,
selectId
,
'11'
],
stdin
=
subprocess
.
PIPE
,
stdout
=
subprocess
.
PIPE
,
p
=
subprocess
.
Popen
([
'node'
,
'src_run1.js'
,
selectId
,
'11'
],
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
=
''
if
p
.
returncode
==
0
:
if
p
.
returncode
==
0
:
...
...
src.js
View file @
91f5648b
This diff is collapsed.
Click to expand it.
src_run.js
View file @
91f5648b
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