Commit 76baa808 by yangchen

知乎 爬虫链接拼接错误修改

parent 899d98a6
...@@ -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.getLong("id")+"/answer/"+objectJson.getJSONObject("question").getLong("id"); url = "https://www.zhihu.com/question/"+objectJson.getJSONObject("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")){
......
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