Apache Nutch is an extensible and scalable web crawler
NUTCH-2754 fetcher.max.crawl.delay ignored if exceeding 5 min. / 300 sec. - initialize crawler-commons's SimpleRobotRulesParser with the longest possible internal maxDelay
Sebastian Nagel4c74bcece7f7
diff --git a/src/java/org/apache/nutch/protocol/RobotRulesParser.java b/src/java/org/apache/nutch/protocol/RobotRulesParser.javaindex 0671a8f4c..159f34f84 100644--- a/src/java/org/apache/nutch/protocol/RobotRulesParser.java+++ b/src/java/org/apache/nutch/protocol/RobotRulesParser.java@@ -78,6 +78,10 @@ public abstract class RobotRulesParser implements Tool {RobotRulesMode.ALLOW_NONE);private static SimpleRobotRulesParser robotParser = new SimpleRobotRulesParser();+ static {+ robotParser.setMaxCrawlDelay(Long.MAX_VALUE);+ }+protected Configuration conf;protected String agentNames;