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
705c1d32
Commit
705c1d32
authored
Nov 24, 2023
by
Charles刘佳佳
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fixed:redis只重推百科的队列
parent
05c6cc59
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
crawler.py
crawler.py
+2
-1
No files found.
crawler.py
View file @
705c1d32
...
@@ -32,7 +32,8 @@ def GetCompany(types):
...
@@ -32,7 +32,8 @@ def GetCompany(types):
# 重新放入采集队列
# 重新放入采集队列
def
DoSpiderCompany
(
company
,
crawler_website
):
def
DoSpiderCompany
(
company
,
crawler_website
):
post_data
=
{
post_data
=
{
"company_name"
:
company
"company_name"
:
company
,
"crawler_website"
:
crawler_website
}
}
json_data
=
json
.
dumps
(
post_data
)
json_data
=
json
.
dumps
(
post_data
)
response
=
requests
.
post
(
cyaml
.
data
[
cyaml
.
data
[
"env"
]][
"url"
]
+
cyaml
.
data
[
"php-api"
][
"respidercompany"
],
response
=
requests
.
post
(
cyaml
.
data
[
cyaml
.
data
[
"env"
]][
"url"
]
+
cyaml
.
data
[
"php-api"
][
"respidercompany"
],
...
...
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