Scrapy, a fast high-level web crawling & scraping framework for Python.
Renamed command "start" to "runserver". Closes #209
Pablo Hoffman50621b7ef34e
diff --git a/docs/topics/commands.rst b/docs/topics/commands.rstindex 56f625f34..f8dc7738c 100644--- a/docs/topics/commands.rst+++ b/docs/topics/commands.rst@@ -162,23 +162,23 @@ Usage examples::$ scrapy crawl http://example.com/some/page.html[ ... spider that handles example.com starts crawling from that url ... ]-.. command:: start+.. command:: runserver-start------+runserver+----------+-------------------+------------------+-| Syntax: | ``scrapy start`` |-+-------------------+------------------+-| Requires project: | *yes* |-+-------------------+------------------+++-------------------+----------------------++| Syntax: | ``scrapy runserver`` |++-------------------+----------------------++| Requires project: | *yes* |++-------------------+----------------------+Start Scrapy in server mode, which can be controlled by the :command:`queue`command.Usage example::- $ scrapy start+ $ scrapy runserver[ ... scrapy starts and stays idle waiting for spiders to get scheduled ... ]You can now schedule spiders to run using the :command:`queue` command. If@@ -371,13 +371,13 @@ queueManage the execution queue of a Scrapy project.This command is meant to be used to control a Scrapy server started with the-:command:`start` command.+:command:`runserver` command.Example usage::$ scrapy queue add example.com-If there is a Scrapy server running (see :command:`start` command), it will+If there is a Scrapy server running (see :command:`runserver` command), it willstart crawling the ``example.com`` spider. Otherwise, it will only getenqueued,, and it will start crawling once the Scrapy server is started.diff --git a/scrapy/commands/start.py b/scrapy/commands/runserver.pysimilarity index 84%rename from scrapy/commands/start.pyrename to scrapy/commands/runserver.pyindex efe21bd64..c6371fdf4 100644--- a/scrapy/commands/start.py+++ b/scrapy/commands/runserver.py@@ -8,7 +8,7 @@ class Command(ScrapyCommand):requires_project = Truedef short_desc(self):- return "Start the Scrapy manager but don't run any spider (idle mode)"+ return "Start Scrapy in server mode"def run(self, args, opts):queue_class = load_object(settings['SERVICE_QUEUE'])