Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

updated help of some commands

Pablo Hoffmanfc2c6f99b4d4
diff --git a/scrapy/command/commands/crawl.py b/scrapy/command/commands/crawl.py
index 4bf8ac8e3..eb03f4ec6 100644
--- a/scrapy/command/commands/crawl.py
+++ b/scrapy/command/commands/crawl.py
@@ -9,10 +9,10 @@ from scrapy import log
class Command(ScrapyCommand):
def syntax(self):
- return "[options] [domain|url] ..."
+ return "[options] <domain|url> ..."
def short_desc(self):
- return "Run the web scraping engine from the command line"
+ return "Start crawling a domain or URL"
def add_options(self, parser):
ScrapyCommand.add_options(self, parser)
diff --git a/scrapy/command/commands/genspider.py b/scrapy/command/commands/genspider.py
index 3e954908a..f25bfa63a 100644
--- a/scrapy/command/commands/genspider.py
+++ b/scrapy/command/commands/genspider.py
@@ -15,10 +15,10 @@ class Command(ScrapyCommand):
custom_tvars = {}
def syntax(self):
- return "<spider_name> <spider_domain_name> [--template=template_name]"
+ return "[options] <spider_name> <spider_domain_name>"
def short_desc(self):
- return "Generate new spider based on a predefined template"
+ return "Generate new spider based on template passed with --template"
def add_options(self, parser):
ScrapyCommand.add_options(self, parser)
diff --git a/scrapy/command/commands/list.py b/scrapy/command/commands/list.py
index eba9e7e96..b35bde719 100644
--- a/scrapy/command/commands/list.py
+++ b/scrapy/command/commands/list.py
@@ -2,9 +2,6 @@ from scrapy.command import ScrapyCommand
from scrapy.spider import spiders
class Command(ScrapyCommand):
- def syntax(self):
- return ""
-
def short_desc(self):
return "List available spiders"
diff --git a/scrapy/command/commands/start.py b/scrapy/command/commands/start.py
index f2c0342a7..48f01ee20 100644
--- a/scrapy/command/commands/start.py
+++ b/scrapy/command/commands/start.py
@@ -1,16 +1,9 @@
from scrapy.command import ScrapyCommand
from scrapy.core.manager import scrapymanager
-
class Command(ScrapyCommand):
- def syntax(self):
- return "[options]"
-
def short_desc(self):
- return "Start the Scrapy server"
-
- def add_options(self, parser):
- ScrapyCommand.add_options(self, parser)
+ return "Start the Scrapy manager but don't run any spider (idle mode)"
def run(self, args, opts):
scrapymanager.start(*args)