Commit 5429fc24 by [zhangzhiwei]

处理来源带空格的

parent 6d289c0f
...@@ -106,6 +106,7 @@ public class WechatAritcleSearch { ...@@ -106,6 +106,7 @@ public class WechatAritcleSearch {
} }
// System.out.println("content======================"+content); // System.out.println("content======================"+content);
source = element.select("div.txt-box").select("div.s-p").select("a").text(); source = element.select("div.txt-box").select("div.s-p").select("a").text();
source = source.replaceAll(" ", "").trim();
openid = element.select("div.txt-box").select("div.s-p").select("a").attr("i"); openid = element.select("div.txt-box").select("div.s-p").select("a").attr("i");
putDate = element.select("div.txt-box").select("div.s-p").attr("t"); putDate = element.select("div.txt-box").select("div.s-p").attr("t");
date = new Date(Long.valueOf(putDate) * 1000); date = new Date(Long.valueOf(putDate) * 1000);
......
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