Commit 76fb6688 by leiliangliang

关闭淘宝爬取程序

parent ca4c9781
...@@ -520,17 +520,17 @@ public class GatherTimer { ...@@ -520,17 +520,17 @@ public class GatherTimer {
TipsUtils.addHotList(HotSearchType.快手热榜.name(), kuaiShouList); TipsUtils.addHotList(HotSearchType.快手热榜.name(), kuaiShouList);
logger.info("快手热榜采集结束..."); logger.info("快手热榜采集结束...");
} }
/** // /**
*淘宝热搜采集 // *淘宝热搜采集
*/ // */
@Async(value = "myScheduler") // @Async(value = "myScheduler")
@Scheduled(cron = "0 * * * * ? ") // @Scheduled(cron = "0 * * * * ? ")
public void crawlerTaoBao(){ // public void crawlerTaoBao(){
logger.info("淘宝热搜开始采集..."); // logger.info("淘宝热搜开始采集...");
Date date = DateUtils.getMillSecondTime(new Date()); // Date date = DateUtils.getMillSecondTime(new Date());
List<HotSearchList> taoBaoList = TaoBaoHotSearchCrawler.taoBaoHotSearch(date); // List<HotSearchList> taoBaoList = TaoBaoHotSearchCrawler.taoBaoHotSearch(date);
logger.info("{}, 淘宝热搜此轮采集到的数据量为:{}", new Date(), taoBaoList != null ? taoBaoList.size() : 0); // logger.info("{}, 淘宝热搜此轮采集到的数据量为:{}", new Date(), taoBaoList != null ? taoBaoList.size() : 0);
TipsUtils.addHotList(HotSearchType.淘宝热搜.name(), taoBaoList); // TipsUtils.addHotList(HotSearchType.淘宝热搜.name(), taoBaoList);
logger.info("淘宝热搜采集结束..."); // 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