Apache Nutch is an extensible and scalable web crawler
NUTCH-1043 Add pattern for filtering .js in default url filters
Julien Nioche6ea0ba8279de
diff --git a/CHANGES.txt b/CHANGES.txtindex 37720dbe8..49aeb3406 100644--- a/CHANGES.txt+++ b/CHANGES.txt@@ -2,6 +2,8 @@ Nutch Change LogRelease 2.0 - Current Development+* NUTCH-1043 Add pattern for filtering .js in default url filters (jnioche)+* NUTCH-1027 Degrade log level of `can't find rules for scope` (markus)* NUTCH-1011 Normalize duplicate slashes in URL's (markus)diff --git a/conf/automaton-urlfilter.txt.template b/conf/automaton-urlfilter.txt.templateindex 84cf8fad3..85e11ad59 100644--- a/conf/automaton-urlfilter.txt.template+++ b/conf/automaton-urlfilter.txt.template@@ -25,7 +25,8 @@-(file|ftp|mailto):.*# skip image and other suffixes we can't yet parse--.*\.(gif|GIF|jpg|JPG|ico|ICO|css|sit|eps|wmf|zip|ppt|mpg|xls|gz|rpm|tgz|mov|MOV|exe)+# 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.-.*[?*!@=].*diff --git a/conf/regex-urlfilter.txt.template b/conf/regex-urlfilter.txt.templateindex fe566031c..78b2b3118 100644--- a/conf/regex-urlfilter.txt.template+++ b/conf/regex-urlfilter.txt.template@@ -26,7 +26,8 @@-^(file|ftp|mailto):# skip image and other suffixes we can't yet parse--\.(gif|GIF|jpg|JPG|png|PNG|ico|ICO|css|sit|eps|wmf|zip|ppt|mpg|xls|gz|rpm|tgz|mov|MOV|exe|jpeg|JPEG|bmp|BMP)$+# 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.-[?*!@=]