Commit 1212dc7d authored by 段英荣's avatar 段英荣

增加图片存储目录

parent 462cd16e
...@@ -380,7 +380,7 @@ class ZhihuAccount(object): ...@@ -380,7 +380,7 @@ class ZhihuAccount(object):
if data_item["type"] == "search_result": if data_item["type"] == "search_result":
try: try:
data_type = data_item["object"]["type"] data_type = data_item["object"]["type"]
content = data_item["object"]["content"] content = data_item["object"]["content"] if "content" in data_item["object"] else ""
# content = copy.deepcopy(tmp_content) # content = copy.deepcopy(tmp_content)
platform_id = str(data_item["object"]["id"]) platform_id = str(data_item["object"]["id"])
user_id = random.choice(majia_user_list) user_id = random.choice(majia_user_list)
...@@ -470,7 +470,7 @@ class ZhihuAccount(object): ...@@ -470,7 +470,7 @@ class ZhihuAccount(object):
user_id=random.choice(majia_user_list) user_id=random.choice(majia_user_list)
data_type = data_item["type"] data_type = data_item["type"]
platform_id = str(data_item["id"]) platform_id = str(data_item["id"])
data_content = data_item["content"] data_content = data_item["content"] if "content" in data_item else ""
question_id = "" question_id = ""
question_title = "" question_title = ""
have_saved_this_answer = False have_saved_this_answer = False
......
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