Commit a7df23c8 by chenweitao

Merge branch 'working' into 'master'

更新新浪热榜采集链接

See merge request !199
parents 4fba311c 466ef41d
...@@ -68,14 +68,15 @@ public class XinLangHotSearchCrawler { ...@@ -68,14 +68,15 @@ public class XinLangHotSearchCrawler {
}else { }else {
showTags = jsonArray.getJSONObject(i).getString("showTags"); showTags = jsonArray.getJSONObject(i).getString("showTags");
} }
String routeUri = jsonArray.getJSONObject(i).getString("routeUri"); String xinLangUrl = jsonArray.getJSONObject(i).getString("link");
String xinLangUrl = null; // String routeUri = jsonArray.getJSONObject(i).getString("routeUri");
if (routeUri.contains("groupId")) { // String xinLangUrl = null;
xinLangUrl = "https://super.sina.cn/shequn/forum/detail_" + // if (routeUri.contains("groupId")) {
routeUri.substring(routeUri.indexOf("groupId=") + 8) + ".html"; // xinLangUrl = "https://super.sina.cn/shequn/forum/detail_" +
}else{ // routeUri.substring(routeUri.indexOf("groupId=") + 8) + ".html";
xinLangUrl = "https://m.so.com/s?q="+ URLCodeUtil.getURLEncode(name, "utf-8")+"&src=dfttrc&srcg=sina_shoulang_act"; // }else{
} // xinLangUrl = "https://m.so.com/s?q="+ URLCodeUtil.getURLEncode(name, "utf-8")+"&src=dfttrc&srcg=sina_shoulang_act";
// }
String icon = null; String icon = null;
if(Objects.nonNull(showTags)) { if(Objects.nonNull(showTags)) {
if (showTags.contains("新")) { if (showTags.contains("新")) {
......
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