Commit 21612b5f authored by 段英荣's avatar 段英荣

增加搜索爬取功能

parent 5782ab0c
...@@ -248,7 +248,7 @@ class ZhihuAccount(object): ...@@ -248,7 +248,7 @@ class ZhihuAccount(object):
if "data" in raw_content_dict: if "data" in raw_content_dict:
for data_item in raw_content_dict["data"]: for data_item in raw_content_dict["data"]:
data_type = data_item["obeject"]["type"] data_type = data_item["object"]["type"]
content = data_item["object"]["content"] content = data_item["object"]["content"]
platform_id = data_item["object"]["id"] platform_id = data_item["object"]["id"]
user_id = random.choice(majia_user_list) user_id = random.choice(majia_user_list)
......
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