Commit ed4f527e by win 10

解决冲突

parents 5bb9510d b327c7a1
...@@ -286,14 +286,15 @@ public class ZhihuAnwserCrawlerParse { ...@@ -286,14 +286,15 @@ public class ZhihuAnwserCrawlerParse {
} }
public static void main(String[] args){ public static void main(String[] args){
// String url = "https://www.zhihu.com/question/288128510"; String url = "https://www.zhihu.com/question/67992264";
// Date endDate = TimeParse.stringFormartDate("2018-09-20 08:00:00"); Date endDate = TimeParse.stringFormartDate("2010-09-20 08:00:00");
// try{ try{
// getAnswerList(url,endDate, null); getAnswerList(url,endDate, null);
// }catch (Exception e){ }catch (Exception e){
// e.fillInStackTrace(); e.fillInStackTrace();
// } }
getAnswerCount("https://www.zhihu.com/question/41539825", null); int count = getAnswerCount("https://www.zhihu.com/question/67992264", null);
System.out.println(count);
} }
} }
...@@ -356,7 +356,11 @@ public class DataCrawler { ...@@ -356,7 +356,11 @@ public class DataCrawler {
* @return List<LunTanData> 返回类型 * @return List<LunTanData> 返回类型
*/ */
public static List<LunTanData> getLunTanData(String word, ProxyHolder proxy, String startTime, String endTime) { public static List<LunTanData> getLunTanData(String word, ProxyHolder proxy, String startTime, String endTime) {
return TianYaCrawlerParse.getLunTanData(word, proxy, startTime, endTime); try {
return TianYaCrawlerParse.getLunTanData(word, proxy, startTime, endTime);
} catch (Exception e) {
return Collections.emptyList();
}
} }
/** /**
......
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