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.
我正在使用 crawler4j,我需要在运行时添加链接。比方说,我添加了一个种子“LinkA”,crawler4j 开始抓取它。在程序运行时,我想再添加一个种子“LinkB”。可以做到吗?如果是,如何?
提前致谢。
您可以在运行时在 WebCrawler 中轻松添加其他种子。例如,在您的访问方法中添加以下几行:
this.myController.addSeed("http://The page you want to crawl");