2012-08-10 148 views

回答

1

要只抓取其中添加作爲種子的頁面,設置MaxDepthOfCrawling 0

CrawlConfig config = new CrawlConfig(); 
config.setMaxDepthOfCrawling(0); 
PageFetcher pageFetcher = new PageFetcher(config);