Search in sources :

Example 1 with HuxiuProcessor

use of us.codecraft.webmagic.samples.HuxiuProcessor in project webmagic by code4craft.

the class SpiderTest method testSpider.

@Ignore
@Test
public void testSpider() throws InterruptedException {
    Spider me = Spider.create(new HuxiuProcessor()).addPipeline(new FilePipeline());
    me.run();
}
Also used : FilePipeline(us.codecraft.webmagic.pipeline.FilePipeline) HuxiuProcessor(us.codecraft.webmagic.samples.HuxiuProcessor) Ignore(org.junit.Ignore) Test(org.junit.Test)

Aggregations

Ignore (org.junit.Ignore)1 Test (org.junit.Test)1 FilePipeline (us.codecraft.webmagic.pipeline.FilePipeline)1 HuxiuProcessor (us.codecraft.webmagic.samples.HuxiuProcessor)1