Commit 42a35bdd by chenweitao

Merge branch 'working' into 'master'

更新微博话题解析

See merge request !91
parents 79009b98 8d6b515b
...@@ -273,6 +273,7 @@ public class WeiboHotSearchCrawler { ...@@ -273,6 +273,7 @@ public class WeiboHotSearchCrawler {
} }
} }
try {
//调用weiBoMassageDao添加数据 //调用weiBoMassageDao添加数据
WeiBoMassageDao weiBoMassageDao = new WeiBoMassageDao(); WeiBoMassageDao weiBoMassageDao = new WeiBoMassageDao();
//解析cards,获取热门微博、人物 //解析cards,获取热门微博、人物
...@@ -293,10 +294,12 @@ public class WeiboHotSearchCrawler { ...@@ -293,10 +294,12 @@ public class WeiboHotSearchCrawler {
} }
analysisWeiBoUsers(cardGroup, document.getString("name")); analysisWeiBoUsers(cardGroup, document.getString("name"));
} }
} else {
log.info("获取数据失败");
} }
} }
} catch (Exception e) {
log.error("解析cards失败,未获得热门微博,人物信息",e);
}
return document; return document;
} }
} }
......
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