@Test public void testAction() { SpiderStarter spiderStarter = new SpiderStarter(); spiderStarter.action(); }
public void action() { Spider.create(new DoubanHouseProcessor()) .addUrl(HouseSource.DOUBAN) .addPipeline(new ConsolePipeline()) .run(); Spider.create(new TongChengHouseProcessor()) .addUrl(HouseSource.COM_58) .addPipeline(new ConsolePipeline()) .run(); }
SpiderStarter { public void action() { Spider.create(new DoubanHouseProcessor()) .addUrl(HouseSource.DOUBAN) .addPipeline(new ConsolePipeline()) .run(); Spider.create(new TongChengHouseProcessor()) .addUrl(HouseSource.COM_58) .addPipeline(new ConsolePipeline()) .run(); } }
SpiderStarter { public void action() { Spider.create(new DoubanHouseProcessor()) .addUrl(HouseSource.DOUBAN) .addPipeline(new ConsolePipeline()) .run(); Spider.create(new TongChengHouseProcessor()) .addUrl(HouseSource.COM_58) .addPipeline(new ConsolePipeline()) .run(); }  }
SpiderStarter { public void action() { Spider.create(new DoubanHouseProcessor()) .addUrl(HouseSource.DOUBAN) .addPipeline(new ConsolePipeline()) .run(); Spider.create(new TongChengHouseProcessor()) .addUrl(HouseSource.COM_58) .addPipeline(new ConsolePipeline()) .run(); }  void action(); }
SpiderStarter { public void action() { Spider.create(new DoubanHouseProcessor()) .addUrl(HouseSource.DOUBAN) .addPipeline(new ConsolePipeline()) .run(); Spider.create(new TongChengHouseProcessor()) .addUrl(HouseSource.COM_58) .addPipeline(new ConsolePipeline()) .run(); }  void action();  }