本文整理汇总了Java中us.codecraft.webmagic.processor.PageProcessor类的典型用法代码示例。如果您正苦于以下问题:Java PageProcessor类的具体用法?Java PageProcessor怎么用?Java PageProcessor使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
PageProcessor类属于us.codecraft.webmagic.processor包,在下文中一共展示了PageProcessor类的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: MySpider
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
MySpider(PageProcessor pageProcessor, SpiderInfo spiderInfo) {
super(pageProcessor);
this.SPIDER_INFO = spiderInfo;
}
示例2: NestSpider
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
public NestSpider(PageProcessor pageProcessor, SpiderInfo info) {
super(pageProcessor);
this.SPIDER_INFO = info;
}
示例3: WebMagicProcessorDelegator
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
public WebMagicProcessorDelegator(PageProcessor pageProcessor) {
this.pageProcessor = pageProcessor;
}
示例4: WebMagicDownloaderDelegator
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
public WebMagicDownloaderDelegator(PageProcessor pageProcessor, Downloader downloader) {
super(pageProcessor);
this.downloader = downloader;
}
示例5: transformProcessor
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
public static SeedProcessor transformProcessor(PageProcessor pageProcessor) {
return new WebMagicProcessorDelegator(pageProcessor);
}
示例6: transformProcessorWithDownloader
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
public static SeedProcessor transformProcessorWithDownloader(PageProcessor pageProcessor, Downloader downloader) {
return new WebMagicDownloaderDelegator(pageProcessor, downloader);
}
示例7: OOSpider
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
public OOSpider(PageProcessor pageProcessor) {
super(pageProcessor);
}
示例8: Spider
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
/**
* 使用已定义的抽取规则新建一个Spider。
*
* @param pageProcessor
* 已定义的抽取规则
*/
public Spider(PageProcessor pageProcessor) {
this.pageProcessor = pageProcessor;
this.site = pageProcessor.getSite();
this.startUrls = pageProcessor.getSite().getStartUrls();
}
示例9: create
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
/**
* 使用已定义的抽取规则新建一个Spider。
*
* @param pageProcessor
* 已定义的抽取规则
* @return 新建的Spider
*/
public static Spider create(PageProcessor pageProcessor) {
return new Spider(pageProcessor);
}
示例10: create
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
/**
* create a spider with pageProcessor.
*
* @param pageProcessor pageProcessor
* @return new spider
* @see PageProcessor
*/
public static Spider create(PageProcessor pageProcessor) {
return new Spider(pageProcessor);
}
示例11: Spider
import us.codecraft.webmagic.processor.PageProcessor; //导入依赖的package包/类
/**
* create a spider with pageProcessor.
*
* @param pageProcessor pageProcessor
*/
public Spider(PageProcessor pageProcessor) {
this.pageProcessor = pageProcessor;
this.site = pageProcessor.getSite();
}