Commit a7df23c8 by chenweitao

Merge branch 'working' into 'master'

更新新浪热榜采集链接

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