Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

per_slot_settings(docs): settings 2

Georgiy Zatserklianyi5208d436ae26
diff --git a/docs/topics/settings.rst b/docs/topics/settings.rst
index bde33a0e9..477c3068f 100644
--- a/docs/topics/settings.rst
+++ b/docs/topics/settings.rst
@@ -778,6 +778,24 @@ DOWNLOAD_SLOTS
Default: ``{}``
+Allows to define concurrency/delay parameters on per slot(domain) basis:
+
+ .. code-block:: python
+
+ DOWNLOAD_SLOTS = {
+ 'quotes.toscrape.com': {
+ 'concurrency': 1,
+ 'delay': 2,
+ 'randomize_delay': False
+ },
+ 'books.toscrape.com': {
+ 'delay': 3,
+ 'randomize_delay': False
+ }
+ }
+wrapper around :func:`~scrapy.core.downloader.Slot`
+
+.. autofunction:: scrapy.core.downloader.Slot
.. setting:: DOWNLOAD_TIMEOUT