Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
クロールする必要のあるWebURLのリストがあります。深くクロールせずに、Webページのリストのみをクロールすることは可能ですか。URLをシードとして追加すると、完全なWebサイトが完全な深さでクロールされます。
シードとして追加したページのみをクロールするには、MaxDepthOfCrawling を 0 に設定します。
CrawlConfig config = new CrawlConfig(); config.setMaxDepthOfCrawling(0); PageFetcher pageFetcher = new PageFetcher(config);