Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
strategy_spider
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
rank
strategy_spider
Commits
bbccdefc
Commit
bbccdefc
authored
Jan 15, 2020
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图片存储目录
parent
e741a98a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
zhihu_login.py
zhihu_login.py
+4
-2
No files found.
zhihu_login.py
View file @
bbccdefc
...
@@ -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"
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment