From 535fdb408b0fb1ffe35d7fc0dcec2e7c376aa3c6 Mon Sep 17 00:00:00 2001 From: rcktmonk <125162171+rcktmonk@users.noreply.github.com> Date: Fri, 24 Mar 2023 14:59:27 -0500 Subject: [PATCH 1/3] Update tutorial.rst Lost an hour to trying to figure this out, even chatGPT was no help. found it buried in stackoverflow post. --- docs/intro/tutorial.rst | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst index 901a170b4..40a96ea36 100644 --- a/docs/intro/tutorial.rst +++ b/docs/intro/tutorial.rst @@ -132,11 +132,15 @@ and defines some attributes and methods: How to run our spider --------------------- -To put our spider to work, go to the project's top level directory and run:: +To put our spider to work, go to the project's top level directory (the one with the file 'scrapy.cfg') already in it and run: + scrapy genspider quotes quotes.toscrape.com + +And then run + scrapy crawl quotes -This command runs the spider with name ``quotes`` that we've just added, that +This last command runs the spider with name ``quotes`` that we've just added, that will send some requests for the ``quotes.toscrape.com`` domain. You will get an output similar to this:: From 1fb9671e0e55973608a0d840fb37c1a42ede622b Mon Sep 17 00:00:00 2001 From: Adrian Chaves Date: Fri, 7 Aug 2026 13:14:18 +0200 Subject: [PATCH 2/3] Clarify what the top folder is in the tutorial --- docs/intro/tutorial.rst | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst index c88bfd93a..300d49913 100644 --- a/docs/intro/tutorial.rst +++ b/docs/intro/tutorial.rst @@ -133,15 +133,12 @@ and defines some attributes and methods: How to run our spider --------------------- -To put our spider to work, go to the project's top level directory (the one with the file 'scrapy.cfg') already in it and run: - - scrapy genspider quotes quotes.toscrape.com - -And then run +To put our spider to work, go to the project's top level directory, the one +that contains ``scrapy.cfg``, and run:: scrapy crawl quotes -This last command runs the spider named ``quotes`` that we've just added, that +This command runs the spider named ``quotes`` that we've just added, that will send some requests for the ``quotes.toscrape.com`` domain. You will get an output similar to this:: From 4089ff7467cd69002cbf883ec4c80b9180ed8966 Mon Sep 17 00:00:00 2001 From: Adrian Chaves Date: Fri, 7 Aug 2026 13:17:01 +0200 Subject: [PATCH 3/3] Use :file: syntax --- docs/intro/tutorial.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/intro/tutorial.rst b/docs/intro/tutorial.rst index 300d49913..20e44bd92 100644 --- a/docs/intro/tutorial.rst +++ b/docs/intro/tutorial.rst @@ -134,7 +134,7 @@ How to run our spider --------------------- To put our spider to work, go to the project's top level directory, the one -that contains ``scrapy.cfg``, and run:: +that contains :file:`scrapy.cfg`, and run:: scrapy crawl quotes