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
b448620b
Commit
b448620b
authored
Jan 12, 2021
by
litaolemo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update
parent
fbb4bad4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
xiaohongshu_to_rpc.py
crawler_sys/scheduler/xiaohongshu_to_rpc.py
+10
-0
No files found.
crawler_sys/scheduler/xiaohongshu_to_rpc.py
View file @
b448620b
...
...
@@ -12,6 +12,12 @@ from crawler.crawler_sys.utils.rpc_data_to_answer import post_single_data,post_m
from
crawler_sys.utils.output_results
import
retry_get_url
from
crawler.gm_upload.gm_upload
import
upload
,
upload_file
gm_user_id_list
=
[
'5cca9b3700000000120314c9'
,
'5aa0f7bae8ac2b65bfcdaf0e'
,
'5c20dd200000000007027c07'
,
'5fe1c1ba0000000001006e65'
]
majiayonghu_list
=
[
36436814
,
36436809
,
...
...
@@ -130,6 +136,10 @@ for pid in pid_list:
res_json
[
"NoteView"
][
"content"
][
"desc_fix"
]
=
desc_fix
# print(desc_fix)
res
=
rds
.
hset
(
"xiaohongshu_with_img"
,
key
=
pid
,
value
=
json
.
dumps
(
res_json
))
if
res_json
[
"NoteView"
][
"userId"
]
in
gm_user_id_list
:
video_dic
[
"level"
]
=
4
else
:
video_dic
[
"level"
]
=
2
video_dic
[
"platform"
]
=
"9"
video_dic
[
"platform_id"
]
=
pid
video_dic
[
"platform_answer_id"
]
=
pid
...
...
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