Commit bbccdefc authored by 段英荣's avatar 段英荣

增加图片存储目录

parent e741a98a
...@@ -369,7 +369,7 @@ class ZhihuAccount(object): ...@@ -369,7 +369,7 @@ class ZhihuAccount(object):
if question_id not in question_answer_dict: if question_id not in question_answer_dict:
question_answer_dict[question_id] = set() question_answer_dict[question_id] = set()
question_answer_dict[question_id].add(platform_id) question_answer_dict[question_id].add(platform_id)
self.zhihu_answers_list_by_question(question_id,question_answer_dict,zhihu_spider_fd,cur_image_index,cur_word_index) cur_image_index = self.zhihu_answers_list_by_question(question_id,question_answer_dict,zhihu_spider_fd,cur_image_index,cur_word_index)
question_item_dict = { question_item_dict = {
"user_id": user_id, "user_id": user_id,
...@@ -471,7 +471,9 @@ class ZhihuAccount(object): ...@@ -471,7 +471,9 @@ class ZhihuAccount(object):
print(traceback.format_exc()) print(traceback.format_exc())
print(str(data_item)) print(str(data_item))
return return cur_image_index
if __name__ == '__main__': if __name__ == '__main__':
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.settings") os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings.settings")
......
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