Scrapy, a fast high-level web crawling & scraping framework for Python.
wrapped some big lines
Pablo Hoffman6c58d06f0f5c
diff --git a/scrapy/command/commands/fetch.py b/scrapy/command/commands/fetch.pyindex 7374d81a1..6509bf317 100644--- a/scrapy/command/commands/fetch.py+++ b/scrapy/command/commands/fetch.py@@ -14,11 +14,13 @@ class Command(ScrapyCommand):return "Fetch a URL using the Scrapy downloader"def long_desc(self):- return "Fetch a URL using the Scrapy downloader and print its content to stdout. You may want to use --nolog to disable logging"+ return "Fetch a URL using the Scrapy downloader and print its content " \+ "to stdout. You may want to use --nolog to disable logging"def add_options(self, parser):ScrapyCommand.add_options(self, parser)- parser.add_option("--headers", dest="headers", action="store_true", help="print HTTP headers instead of body")+ parser.add_option("--headers", dest="headers", action="store_true", \+ help="print HTTP headers instead of body")def run(self, args, opts):if not args:diff --git a/scrapy/command/commands/parse.py b/scrapy/command/commands/parse.pyindex fd8a64d68..1cf1f0f4f 100644--- a/scrapy/command/commands/parse.py+++ b/scrapy/command/commands/parse.py@@ -18,11 +18,16 @@ class Command(ScrapyCommand):def add_options(self, parser):ScrapyCommand.add_options(self, parser)- parser.add_option("--nolinks", dest="nolinks", action="store_true", help="don't show extracted links")- parser.add_option("--noitems", dest="noitems", action="store_true", help="don't show scraped items")- parser.add_option("--nocolour", dest="nocolour", action="store_true", help="avoid using pygments to colorize the output")- parser.add_option("-r", "--rules", dest="rules", action="store_true", help="try to match and parse the url with the defined rules (if any)")- parser.add_option("-c", "--callbacks", dest="callbacks", action="store", help="use the provided callback(s) for parsing the url (separated with commas)")+ parser.add_option("--nolinks", dest="nolinks", action="store_true", \+ help="don't show extracted links")+ parser.add_option("--noitems", dest="noitems", action="store_true", \+ help="don't show scraped items")+ parser.add_option("--nocolour", dest="nocolour", action="store_true", \+ help="avoid using pygments to colorize the output")+ parser.add_option("-r", "--rules", dest="rules", action="store_true", \+ help="try to match and parse the url with the defined rules (if any)")+ parser.add_option("-c", "--callbacks", dest="callbacks", action="store", \+ help="use the provided callback(s) for parsing the url (separated with commas)")def process_options(self, args, opts):super(Command, self).process_options(args, opts)@@ -91,7 +96,8 @@ class Command(ScrapyCommand):self.print_results(items, links, rule.callback, opts)breakelse:- log.msg('No rules found for spider "%s", please specify a callback for parsing' % spider.domain_name)+ log.msg('No rules found for spider "%s", please specify a callback for parsing' \+ % spider.domain_name)continueelse: