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
1212dc7d
Commit
1212dc7d
authored
Jan 15, 2020
by
段英荣
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加图片存储目录
parent
462cd16e
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
zhihu_login.py
zhihu_login.py
+2
-2
No files found.
zhihu_login.py
View file @
1212dc7d
...
...
@@ -380,7 +380,7 @@ class ZhihuAccount(object):
if
data_item
[
"type"
]
==
"search_result"
:
try
:
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)
platform_id
=
str
(
data_item
[
"object"
][
"id"
])
user_id
=
random
.
choice
(
majia_user_list
)
...
...
@@ -470,7 +470,7 @@ class ZhihuAccount(object):
user_id
=
random
.
choice
(
majia_user_list
)
data_type
=
data_item
[
"type"
]
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_title
=
""
have_saved_this_answer
=
False
...
...
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