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] 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::