Commit 4ac6afdf by zhiwei

自媒体匹配数据添加易车网、汽车之家

parent 7bccfb23
......@@ -181,6 +181,18 @@ public class TreateData {
}else{
source = html.split("source\":\"")[1].split("\",\"")[0];
}
}else if(url.contains("news.bitauto.com")){
source = document.select("[class=\"gz-box clearfix\"]").select("div.txt-box")
.select("p.p-n").select("a").text();
if(source!=null && !source.equals("")){
source = "易车网-" + source;
}
}else if(url.contains("chejiahao.autohome.com.cn")){
source = document.select("div.authorMes").select("[class=\"name text-overflow\"]")
.select("a").text();
if(source!=null && !source.equals("")){
source = "汽车之家-" + source;
}
}
return source;
} catch (Exception e) {
......
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