Scrapy, a fast high-level web crawling & scraping framework for Python.
Document that concurrent spiders get independent crawlers, middlewares, and settings (#8055)
Adrian45c837cc8626
diff --git a/docs/topics/practices.rst b/docs/topics/practices.rstindex 971bb9106..ecc1fb107 100644--- a/docs/topics/practices.rst+++ b/docs/topics/practices.rst@@ -361,6 +361,12 @@ By default, Scrapy runs a single spider per process when you run ``scrapycrawl``. However, Scrapy supports running multiple spiders per process usingthe :ref:`internal API <topics-api>`.+Each call to ``crawl()`` creates its own :class:`~scrapy.crawler.Crawler`,+with its own instances of the downloader and spider middlewares and its own+resolved :ref:`settings <topics-settings>`, including :ref:`spider settings+<spider-settings>`. Nothing from one of these is shared with the other+spiders running in the same process.+Here is an example that runs multiple spiders simultaneously:.. code-block:: python