CrawlerConfiguration apiConfig =
new CrawlerConfiguration.Builder().setStartUrl(url).setMaxLevels(linkDepth).setVerifyUrls(false)
.build();
DefaultCrawler crawler =
new DefaultCrawler(new ResponseFetcher(processor), Executors.newFixedThreadPool(10),
new CompositeURLParser(new FramePageURLParser(), new AhrefPageURLParser()));
crawler.getUrls(apiConfig);
crawler.shutdown();
}