Scrapy, a fast high-level web crawling & scraping framework for Python.
DOWNLOAD_DELAY docs clarification:
Mikhail Korobov9a999daa2ae0
diff --git a/docs/topics/autothrottle.rst b/docs/topics/autothrottle.rstindex 8b25e6c3f..e7b900876 100644--- a/docs/topics/autothrottle.rst+++ b/docs/topics/autothrottle.rst@@ -40,7 +40,9 @@ This adjusts download delays and concurrency based on the following rules:.. note:: The AutoThrottle extension honours the standard Scrapy settings forconcurrency and delay. This means that it will never set a download delay- lower than :setting:`DOWNLOAD_DELAY` or a concurrency higher than :setting:`CONCURRENT_REQUESTS_PER_DOMAIN` (or :setting:`CONCURRENT_REQUESTS_PER_IP`, depending on which one you use).+ lower than :setting:`DOWNLOAD_DELAY` or a concurrency higher than+ :setting:`CONCURRENT_REQUESTS_PER_DOMAIN`+ (or :setting:`CONCURRENT_REQUESTS_PER_IP`, depending on which one you use).Settings========diff --git a/docs/topics/settings.rst b/docs/topics/settings.rstindex bdc948a3c..cc8d79f47 100644--- a/docs/topics/settings.rst+++ b/docs/topics/settings.rst@@ -200,6 +200,11 @@ performed to any single IP. If non-zero, theused instead. In other words, concurrency limits will be applied per IP, notper domain.+This setting also affects :setting:`DOWNLOAD_DELAY`:+if :setting:`CONCURRENT_REQUESTS_PER_IP` is non-zero, download delay is+enforced per IP, not per domain.++.. setting:: DEFAULT_ITEM_CLASSDEFAULT_ITEM_CLASS@@ -339,18 +344,22 @@ DOWNLOAD_DELAYDefault: ``0``The amount of time (in secs) that the downloader should wait before downloading-consecutive pages from the same spider. This can be used to throttle the+consecutive pages from the same website. This can be used to throttle thecrawling speed to avoid hitting servers too hard. Decimal numbers aresupported. Example::- DOWNLOAD_DELAY = 0.25 # 250 ms of delay+ DOWNLOAD_DELAY = 0.25 # 250 ms of delayThis setting is also affected by the :setting:`RANDOMIZE_DOWNLOAD_DELAY`setting (which is enabled by default). By default, Scrapy doesn't wait a fixedamount of time between requests, but uses a random interval between 0.5 and 1.5* :setting:`DOWNLOAD_DELAY`.-You can also change this setting per spider.+When :setting:`CONCURRENT_REQUESTS_PER_IP` is non-zero, delays are enforced+per ip address instead of per domain.++You can also change this setting per spider by setting ``download_delay``+spider attribute... setting:: DOWNLOAD_HANDLERS@@ -644,7 +653,7 @@ Default: ``True``If enabled, Scrapy will wait a random amount of time (between 0.5 and 1.5* :setting:`DOWNLOAD_DELAY`) while fetching requests from the same-spider.+website.This randomization decreases the chance of the crawler being detected (andsubsequently blocked) by sites which analyze requests looking for statistically