Commit b7e91b0a by win 10

新增了观察者、传送门两个自媒体的来源匹配

parent 48f2decf
...@@ -464,6 +464,11 @@ public class MatchSource { ...@@ -464,6 +464,11 @@ public class MatchSource {
source = document.select("div.main-tow > div.box-left > div.article-content > div:nth-child(3) > div.user-main > h4 > a").text(); source = document.select("div.main-tow > div.box-left > div.article-content > div:nth-child(3) > div.user-main > h4 > a").text();
if(Objects.nonNull(source) && !source.isEmpty()){ if(Objects.nonNull(source) && !source.isEmpty()){
source = "风闻社区-" + source; source = "风闻社区-" + source;
}else {
source = document.select("div.author-intro.fix > p > a").text();
if(Objects.nonNull(source) && !source.isEmpty()){
source = "观察者-" + source;
}
} }
}else if(url.contains("yesky.com")){ }else if(url.contains("yesky.com")){
// 天极自媒体 // 天极自媒体
...@@ -646,6 +651,11 @@ public class MatchSource { ...@@ -646,6 +651,11 @@ public class MatchSource {
if(source!=null && !source.equals("")) { if(source!=null && !source.equals("")) {
source = "虎嗅-" + source; source = "虎嗅-" + source;
} }
}else if (url.contains("chuansongme.com")) {
source = document.select("div.rich_media_meta_list > span.rich_media_meta.rich_media_meta_text").text();
if(source!=null && !source.equals("")) {
source = "传送门-" + source;
}
} }
return source; return source;
} catch (Exception e) { } 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