Commit b8124e2b authored by litaolemo's avatar litaolemo

update

parent f247fe38
...@@ -154,7 +154,7 @@ def xiaohongshu_xiaochengxu(res_json): ...@@ -154,7 +154,7 @@ def xiaohongshu_xiaochengxu(res_json):
# print(res_json["NoteView"].get("data")) # print(res_json["NoteView"].get("data"))
for comment in res_json["data"]["commentList"]: for comment in res_json["data"]["commentList"]:
video_dic["content"] = comment['content'] video_dic["content"] = comment['content']
video_dic["platform_id"] = hashlib.md5(comment['user']['id']+comment['content'].encode("utf8")).hexdigest() video_dic["platform_id"] = hashlib.md5((comment['user']['id']+comment['content']).encode("utf8")).hexdigest()
comment_id_list_copy = copy.deepcopy(majiayonghu_list) comment_id_list_copy = copy.deepcopy(majiayonghu_list)
comment_id = random.choice(comment_id_list_copy) comment_id = random.choice(comment_id_list_copy)
video_dic["user_id"] = comment_id video_dic["user_id"] = comment_id
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment