class 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();
	}

}

class SpiderStarterTest {

	@Test
	public void testAction() {

		SpiderStarter spiderStarter = new SpiderStarter();
		spiderStarter.action();
	}

}