Commit 4607dd43 by 马黎滨

微博预热榜添加

parent e03ea262
......@@ -16,5 +16,6 @@ public enum HotSearchType {
凤凰新闻热榜,
凤凰新闻热搜,
网易热榜,
网易跟帖热议
网易跟帖热议,
微博预热榜
}
......@@ -261,6 +261,17 @@ public class GatherTimer {
logger.info("知乎热搜话题采集结束...");
}
// @Async(value = "myScheduler")
// @Scheduled(cron = "20 * * * * ? ")
public void crawlerWeiBoPreheat(){
logger.info("微博预热榜开始采集...");
Date date = DateUtils.getMillSecondTime(new Date());
List<HotSearchList> list = WeiboHotSearchCrawler.weiboPreheatSearch(date);
logger.info("{},微博预热榜此轮采集到的数据量为:{}", new Date(),Integer.valueOf(list != null ? list.size() : 0));
TipsUtils.addHotList(HotSearchType.微博预热榜.name(),list);
logger.info("微博预热榜采集结束...");
}
/**
* 知乎热搜数码分类采集
*/
......
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