Commit 88d622c3 by yangchen

百度时间解析修正

parent 1325c572
......@@ -255,7 +255,7 @@ public class BaiduNewsCrawlerParse extends HttpClientTemplateOK {
time = element.select("div.c-row").select("p.c-author").text();
}
/** 文章发布时间处理 **/
time = TimeParse.dateFormartString(TimeParse.stringFormartDate(time), "yyyy-MM-dd HH:mm:ss");
time = TimeParse.dateFormartString(TimeParse.stringFormartDate(time.trim()), "yyyy-MM-dd HH:mm:ss");
// 处理文章简介
if (element.select("div.c-row") != null) {
descript = element.select("div.c-row").text();
......
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