Scrapy, a fast high-level web crawling & scraping framework for Python.
removed useless --restrict command line argument
Pablo Hoffman566758eeb7c4
diff --git a/scrapy/command/commands/crawl.py b/scrapy/command/commands/crawl.pyindex 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