Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media_data_crawler
Overview
Overview
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
zhiwei
media_data_crawler
Commits
76baa808
Commit
76baa808
authored
Feb 21, 2019
by
yangchen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
知乎 爬虫链接拼接错误修改
parent
899d98a6
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
src/main/java/com/zhiwei/media_data_crawler/crawler/ZhihuCrawlerParse.java
+1
-1
No files found.
src/main/java/com/zhiwei/media_data_crawler/crawler/ZhihuCrawlerParse.java
View file @
76baa808
...
@@ -339,7 +339,7 @@ public class ZhihuCrawlerParse {
...
@@ -339,7 +339,7 @@ public class ZhihuCrawlerParse {
content
=
objectJson
.
getString
(
"content"
)+
objectJson
.
getString
(
"excerpt"
);
content
=
objectJson
.
getString
(
"content"
)+
objectJson
.
getString
(
"excerpt"
);
}
}
if
(
type
.
equals
(
"answer"
)){
if
(
type
.
equals
(
"answer"
)){
url
=
"https://www.zhihu.com/question/"
+
objectJson
.
get
Long
(
"id"
)+
"/answer/"
+
objectJson
.
getJSONObject
(
"question"
)
.
getLong
(
"id"
);
url
=
"https://www.zhihu.com/question/"
+
objectJson
.
get
JSONObject
(
"question"
).
getLong
(
"id"
)+
"/answer/"
+
objectJson
.
getLong
(
"id"
);
}
else
if
(
type
.
equals
(
"article"
)){
}
else
if
(
type
.
equals
(
"article"
)){
url
=
"https://zhuanlan.zhihu.com/p/"
+
objectJson
.
getLong
(
"id"
);
url
=
"https://zhuanlan.zhihu.com/p/"
+
objectJson
.
getLong
(
"id"
);
}
else
if
(
type
.
equals
(
"question"
)){
}
else
if
(
type
.
equals
(
"question"
)){
...
...
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