Apache Nutch is an extensible and scalable web crawler
NUTCH-3083 Add RobotRulesParser to bin/nutch
Sebastian Nagelb481f912cee9
diff --git a/src/bin/nutch b/src/bin/nutchindex 0b55388c6..257059deb 100755--- a/src/bin/nutch+++ b/src/bin/nutch@@ -86,6 +86,7 @@ if [ $# = 0 ]; thenecho " indexchecker check the indexing filters for a given url"echo " filterchecker check url filters for a given url"echo " normalizerchecker check url normalizers for a given url"+ echo " robotsparser parse a robots.txt file and check whether urls are allowed or not"echo " domainstats calculate domain statistics from crawldb"echo " protocolstats calculate protocol status code stats from crawldb"echo " crawlcomplete calculate crawl completion stats from crawldb"@@ -268,6 +269,8 @@ elif [ "$COMMAND" = "filterchecker" ] ; thenCLASS=org.apache.nutch.net.URLFilterCheckerelif [ "$COMMAND" = "normalizerchecker" ] ; thenCLASS=org.apache.nutch.net.URLNormalizerChecker+elif [ "$COMMAND" = "robotsparser" ] ; then+ CLASS=org.apache.nutch.protocol.RobotRulesParserelif [ "$COMMAND" = "domainstats" ] ; thenCLASS=org.apache.nutch.util.DomainStatisticselif [ "$COMMAND" = "protocolstats" ] ; then