Commit 952feb78 by leiliangliang

头条财经,汽车,科技,数码榜采集程序上线

parent d1547bb8
...@@ -652,4 +652,22 @@ public class GatherTimer { ...@@ -652,4 +652,22 @@ public class GatherTimer {
TipsUtils.addHotList(HotSearchType.微博出圈榜.name(), weiBoOutCircleList); TipsUtils.addHotList(HotSearchType.微博出圈榜.name(), weiBoOutCircleList);
log.info(" 微博出圈榜采集结束........"); log.info(" 微博出圈榜采集结束........");
} }
/**
* 头条财经,科技,汽车,数码榜采集
*/
@Async(value = "myScheduler")
@Scheduled(cron = "0 * * * * ? ")
public void toutiaoOtherListByPhone(){
log.info(" 头条财经,科技,汽车,数码榜采集开始........");
Date date = DateUtils.getMillSecondTime(new Date());
Map<String, List<HotSearchList>> map = ToutiaoHotSearchCrawler.toutiaoOtherListByPhone(date);
for (Map.Entry<String, List<HotSearchList>> entry : map.entrySet()) {
String mapKey = entry.getKey();
List<HotSearchList> toutiaoOtherList = entry.getValue();
log.info("{}, "+mapKey+"此轮采集到的数据量为:{}", new Date(), toutiaoOtherList != null ? toutiaoOtherList.size() : 0);
TipsUtils.addHotList(mapKey, toutiaoOtherList);
}
log.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