Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
crawler-py
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
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
jimmy蒋政彪
crawler-py
Commits
5a2f5a4a
Commit
5a2f5a4a
authored
Aug 31, 2023
by
jimmy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
提交数据
parent
c5426fd1
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
crawler.cpython-311.pyc
__pycache__/crawler.cpython-311.pyc
+0
-0
crawler_baidu.cpython-311.pyc
__pycache__/crawler_baidu.cpython-311.pyc
+0
-0
crawler_boss.cpython-311.pyc
__pycache__/crawler_boss.cpython-311.pyc
+0
-0
crawler_boss.py
crawler_boss.py
+6
-4
No files found.
__pycache__/crawler.cpython-311.pyc
View file @
5a2f5a4a
No preview for this file type
__pycache__/crawler_baidu.cpython-311.pyc
View file @
5a2f5a4a
No preview for this file type
__pycache__/crawler_boss.cpython-311.pyc
View file @
5a2f5a4a
No preview for this file type
crawler_boss.py
View file @
5a2f5a4a
...
...
@@ -31,11 +31,13 @@ def spider_company(page):
my_obj
[
'intro'
]
=
company_intro
crawler
.
Log
(
company_name
+
"-获取到boss数据:"
+
str
(
company_intro
))
name2
=
crawler
.
SaveCompanyData
(
company_nameO
,
2
,
str
(
company_intro
))
if
name2
!=
""
:
crawler
.
Log
(
name2
+
":boss数据,写入成功"
)
name2
=
crawler
.
SaveCompanyData
(
company_nameO
,
2
,
str
(
company_intro
))
if
name2
!=
""
:
crawler
.
Log
(
name2
+
":boss数据,写入成功"
)
else
:
crawler
.
Log
(
company_nameO
+
":boss数据,写入失败"
)
else
:
crawler
.
Log
(
company_nameO
+
":boss数据,写入失败
"
)
crawler
.
SaveCompanyData
(
company_nameO
,
2
,
"
"
)
else
:
crawler
.
SaveCompanyData
(
company_nameO
,
2
,
""
)
...
...
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