From 566758eeb7c4033b340b3d2f409725e4cfa2a1b5 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Fri, 28 Aug 2009 19:38:04 -0300 Subject: [PATCH] removed useless --restrict command line argument --- scrapy/command/commands/crawl.py | 5 ----- 1 file changed, 5 deletions(-) diff --git a/scrapy/command/commands/crawl.py b/scrapy/command/commands/crawl.py index 35247d741..ac0a340b1 100644 --- a/scrapy/command/commands/crawl.py +++ b/scrapy/command/commands/crawl.py @@ -21,8 +21,6 @@ class Command(ScrapyCommand): ScrapyCommand.add_options(self, parser) parser.add_option("--nopipeline", dest="nopipeline", action="store_true", \ help="disable scraped item pipeline") - parser.add_option("--restrict", dest="restrict", action="store_true", \ - help="restrict crawling only to the given urls") parser.add_option("-n", "--nofollow", dest="nofollow", action="store_true", \ help="don't follow links (for use with URLs only)") parser.add_option("-c", "--callback", dest="callback", action="store", \ @@ -33,9 +31,6 @@ class Command(ScrapyCommand): if opts.nopipeline: settings.overrides['ITEM_PIPELINES'] = [] - if opts.restrict: - settings.overrides['RESTRICT_TO_URLS'] = args - if opts.nofollow: settings.overrides['CRAWLSPIDER_FOLLOW_LINKS'] = False