Commit 2f99cb1b by yangchen

无效日志删除

parent 5f4ff8d3
...@@ -93,7 +93,6 @@ public class BaiduNewsCrawlerParse extends HttpClientTemplateOK { ...@@ -93,7 +93,6 @@ public class BaiduNewsCrawlerParse extends HttpClientTemplateOK {
public static int getBaiduNewsCount(String word, String startTime, String endTime, Proxy proxy,String cookie) throws Exception { public static int getBaiduNewsCount(String word, String startTime, String endTime, Proxy proxy,String cookie) throws Exception {
try { try {
String result = downloadHtml(word, startTime, endTime, proxy, "newsdy", 1,cookie); String result = downloadHtml(word, startTime, endTime, proxy, "newsdy", 1,cookie);
System.out.println(result);
String s = result.split("找到相关新闻")[1]; String s = result.split("找到相关新闻")[1];
String s1 = s.split("篇")[0]; String s1 = s.split("篇")[0];
s1 = s1.replace(",", "").replace("约", ""); s1 = s1.replace(",", "").replace("约", "");
......
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