Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
C
crawler
Project
Project
Details
Activity
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
backend
crawler
Commits
d817d81c
Commit
d817d81c
authored
Jan 20, 2021
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
53307e8c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
xiaohongshu_to_rpc.py
crawler_sys/scheduler/xiaohongshu_to_rpc.py
+1
-1
crawler_xiaohongshu.py
crawler_sys/site_crawler_by_redis/crawler_xiaohongshu.py
+3
-2
No files found.
crawler_sys/scheduler/xiaohongshu_to_rpc.py
View file @
d817d81c
...
...
@@ -9,7 +9,7 @@ import random
import
time
import
redis
,
json
#
from crawler.crawler_sys.utils.rpc_data_to_answer import post_single_data,post_muilty_data
from
crawler.crawler_sys.utils.rpc_data_to_answer
import
post_single_data
,
post_muilty_data
from
crawler_sys.utils.output_results
import
retry_get_url
from
crawler.gm_upload.gm_upload
import
upload
,
upload_file
from
crawler.crawler_sys.scheduler.redis_to_rpc.rpc_config
import
*
...
...
crawler_sys/site_crawler_by_redis/crawler_xiaohongshu.py
View file @
d817d81c
...
...
@@ -129,7 +129,7 @@ class Crawler_xiaohongshu():
def
releaser_page_by_xiaochengxu
(
self
,
releaserUrl
,
output_to_file
=
False
,
filepath
=
None
,
releaser_page_num_max
=
3
0
,
releaser_page_num_max
=
20
0
,
output_to_es_raw
=
False
,
es_index
=
None
,
doc_type
=
None
,
...
...
@@ -165,7 +165,8 @@ class Crawler_xiaohongshu():
time
.
sleep
(
random
.
randint
(
1
,
2
))
data_list
=
res
.
json
()
if
data_list
[
"code"
]
!=
0
or
not
data_list
[
"success"
]:
break
if
data_list
:
print
(
"get data at releaser:
%
s page:
%
s"
%
(
releaser_id
,
count
))
count
+=
1
...
...
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