Commit 7b2883ee by yangchen

修改 百家号 source获取

parent c799bd00
...@@ -166,7 +166,7 @@ public class MatchSource { ...@@ -166,7 +166,7 @@ public class MatchSource {
} }
}else if(url.contains("baijiahao.baidu.com")){ }else if(url.contains("baijiahao.baidu.com")){
//百度百家 //百度百家
source = document.select("div.author").select("div.author-txt").select("p.author-name").text().trim(); source = document.select("p.author-name").first().text().trim();
if(source!=null && source.length()>1){ if(source!=null && source.length()>1){
source = "百度百家-" + source; source = "百度百家-" + source;
} }
......
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