Commit 2e6f9c72 by 马黎滨

百度采集日志打印

parent 6941070e
...@@ -100,6 +100,10 @@ public class BaiDuHotSearchCrawler { ...@@ -100,6 +100,10 @@ public class BaiDuHotSearchCrawler {
count = Integer.valueOf(hot); count = Integer.valueOf(hot);
} }
if (Objects.nonNull(rank)) { if (Objects.nonNull(rank)) {
if(count == 0){
log.info(hot);
log.info(element);
}
HotSearchList hotSearch = new HotSearchList(everurl, kw, count, rank, HotSearchType.百度热搜.name()); HotSearchList hotSearch = new HotSearchList(everurl, kw, count, rank, HotSearchType.百度热搜.name());
list.add(hotSearch); list.add(hotSearch);
} }
......
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