gpt4 book ai didi

java - 如何在 Apache Nutch 2.x 中获取 webgraph

转载 作者:行者123 更新时间:2023-12-02 03:11:14 25 4
gpt4 key购买 nike

我正在使用 apache nutch 2.3.1 来抓取一些网站。我必须找到抓取数据的 webgrapg,但不幸的是,这个版本中没有像 1.x 版本中那样定义类。有人可以指导我这件事吗?以下是 2.3.1 版本的完整命令行选项(但没有 webgraph)

Usage: nutch COMMAND
where COMMAND is one of:
inject inject new urls into the database
hostinject creates or updates an existing host table from a text file
generate generate new batches to fetch from crawl db
fetch fetch URLs marked during generate
parse parse URLs marked during fetch
updatedb update web table after parsing
updatehostdb update host table after parsing
readdb read/dump records from page database
readhostdb display entries from the hostDB
index run the plugin-based indexer on parsed batches
elasticindex run the elasticsearch indexer - DEPRECATED use the index command instead
solrindex run the solr indexer on parsed batches - DEPRECATED use the index command instead
solrdedup remove duplicates from solr
solrclean remove HTTP 301 and 404 documents from solr - DEPRECATED use the clean command instead
clean remove HTTP 301 and 404 documents and duplicates from indexing backends configured via plugins
parsechecker check the parser for a given url
indexchecker check the indexing filters for a given url
plugin load a plugin and run one of its classes main()
nutchserver run a (local) Nutch server on a user defined port
webapp run a local Nutch web application
junit runs the given JUnit test
or
CLASSNAME run the class named CLASSNAME

最佳答案

不幸的是,这个功能还没有添加到 Nutch 的 2.x 分支中,作为一般规则,我相信 1.x 分支具有更多功能并且性能更好(尽管这正在改变)。如果您需要保留在 2.x 上,那么我建议您自行实现该功能,或者将 links-indexer 插件从 1.x 迁移到 2.x(我相信迁移索引器插件会更容易)。我本来有这个计划,但找不到时间。

关于java - 如何在 Apache Nutch 2.x 中获取 webgraph,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/41009003/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com