mirror of https://github.com/scrapy/scrapy.git
Update tutorial.rst
Lost an hour to trying to figure this out, even chatGPT was no help. found it buried in stackoverflow post.
This commit is contained in:
parent
c34ca4aef5
commit
535fdb408b
|
|
@ -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::
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue