Commit ab587b25 by yangchen

网易自媒体名称重复问题

parent 23309d1c
......@@ -25,7 +25,7 @@ public class MediaSelfSource {
public static void main(String[] args) {
ProxyFactory.init("zookeeper://192.168.0.36:2181","local",GroupType.PROVIDER);
List<String> urlList = new ArrayList<>();
urlList.add("https://www.itouchtv.cn/article/8212be3f0e2898c4064df4158a12d9b0");
urlList.add("https://dy.163.com/v2/article/detail/EI1VGJ1S05179BUV.html");
List<MediaSelfSourceBean> u = MediaSelfSource.getMediaSelfSource(urlList);
for(MediaSelfSourceBean b : u) {
System.out.println(b.toString());
......
......@@ -452,7 +452,7 @@ public class MatchSource {
}
}else if(url.contains("dy.163.com")){
//网易订阅-网易号
source = document.select("div.colum_info > h4").text();
source = document.select("div.normal > div.colum_info > h4").text();
if(source!=null && source.length()>1){
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