【发布时间】:2009-06-02 19:44:23
【问题描述】:
【问题讨论】:
标签: filesystems nutch web-crawler
【问题讨论】:
标签: filesystems nutch web-crawler
来自 Nutch Wiki:
如何索引我的本地文件系统?
http://wiki.apache.org/nutch/FAQ#head-c721b23b43b15885f5ea7d8da62c1c40a37878e6
1) crawl-urlfilter.txt 需要更改以允许 file: URLs 而不是 http: 的,否则它要么不会索引任何内容,要么会从您的磁盘跳到网站上。 更改此行:
-^(file|ftp|mailto|https):
to this:
-^(http|ftp|mailto|https):
2) crawl-urlfilter.txt 的底部可能有拒绝某些 URL 的规则。如果它有这个片段可能没问题:
# accept anything else +.*
3) 我更改了我的 nutch.xml 以包含以下内容:
<Parameter override="false" name="plugin.includes" value="protocol-file|protocol-http|urlfilter-regex|parse-(msword|pdf|text|html|js)|index-(basic|anchor)|query-(basic|site|url)|response-(json|xml)|summary-basic|scoring-opic|urlnormalizer-(pass|regex|basic)"/>
【讨论】:
nutch 提供了 Intranet 抓取功能。你可以阅读详情here
【讨论】: