Commit 66228bc0 authored by litaolemo's avatar litaolemo

update

parent e2b46635
...@@ -143,12 +143,16 @@ for pid in pid_list: ...@@ -143,12 +143,16 @@ for pid in pid_list:
video_dic["content"] = desc_fix video_dic["content"] = desc_fix
video_dic["user_id"] = random.choice(user_id_list_copy) video_dic["user_id"] = random.choice(user_id_list_copy)
rpc_res = post_single_data(copy.deepcopy(video_dic), "cims/answer/batch_create") rpc_res = post_single_data(copy.deepcopy(video_dic), "cims/answer/batch_create")
for comment in res_json["NoteView"]["commentInfo"]["comments"]: try:
video_dic["content"] = comment['content'] for comment in res_json["NoteView"]["commentInfo"]["comments"]:
comment_id_list_copy = copy.deepcopy(majiayonghu_list) video_dic["content"] = comment['content']
comment_id = random.choice(comment_id_list_copy) comment_id_list_copy = copy.deepcopy(majiayonghu_list)
video_dic["user_id"] = comment_id comment_id = random.choice(comment_id_list_copy)
comment_id_list_copy.remove(comment_id) video_dic["user_id"] = comment_id
video_dic["create_time"] = (create_time + datetime.timedelta(hours=random.randint(0,24),minutes=random.randint(0,60))).timestamp() comment_id_list_copy.remove(comment_id)
rpc_res = post_single_data(copy.deepcopy(video_dic), "cims/reply/batch_create") video_dic["create_time"] = (create_time + datetime.timedelta(hours=random.randint(0,24),minutes=random.randint(0,60))).timestamp()
rpc_res = post_single_data(copy.deepcopy(video_dic), "cims/reply/batch_create")
except:
print("comment error")
print(res_json)
break break
\ No newline at end of file
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