我有一个nutch设置在一个地方抓取许多网站一次,但对于一个网站,特别是因为像href=的内部链接“一个没有域名的链接”nutch不能看到这些网址,下面是nutch网站
conf/regex-urlfilter.txt
# skip file: ftp: and mailto: urls
-^(file|ftp|mailto):
# skip image and other suffixes we can't yet parse
# for a more extensive coverage use the urlfilter-suffix plugin
-\.(gif|GIF|jpg|JPG|png|PNG|ico|ICO|css|CSS|sit|SIT|eps|EPS|wmf|WMF|zip|ZIP|ppt|PPT|mpg|MPG|xls|XLS|gz|GZ|rpm|RPM|tgz|TGZ|mov|MOV|exe|EXE|jpeg|JPEG|bmp|BMP|js|JS)$
# skip URLs containing certain characters as probable queries, etc.
-[?*!@=]
# skip URLs with slash-delimited segment that repeats 3+ times, to break loops
-.*(/[^/]+)/[^/]+\1/[^/]+\1/
# accept anything else
+.我更改了默认的nutch-defaults.conf
<property>
<name>db.ignore.internal.links</name>
<value>true</value> <!-- do not leave the seeded domains (optional) -->
</property>谁能告诉我我该怎么做。
发布于 2017-04-24 15:54:54
我有没有域名的链接,它们是同一站点的链接。假设我们有href='www.site.com/linktext',在我的例子中,我有href='linktext‘。Nutch根本看不到这些链接,它只检测那些包含域名的链接。
https://stackoverflow.com/questions/42773170
复制相似问题