use of us.codecraft.webmagic.scheduler.QueueScheduler in project webmagic by code4craft.
the class OschinaBlogPageProcesser method main.
public static void main(String[] args) throws JMException {
Spider spider = Spider.create(new OschinaBlogPageProcesser()).setScheduler(new QueueScheduler().setDuplicateRemover(new BloomFilterDuplicateRemover(2000)));
SpiderMonitor.instance().register(spider);
spider.run();
}
Aggregations