Scrapy, a fast high-level web crawling & scraping framework for Python.
DOC document download_timeout Request.meta key and download_timeout spider attribute.
Mikhail Korobov7d68b084a4a0
diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rstindex e4e490f61..e96ec8852 100644--- a/docs/topics/downloader-middleware.rst+++ b/docs/topics/downloader-middleware.rst@@ -263,7 +263,14 @@ DownloadTimeoutMiddleware.. class:: DownloadTimeoutMiddlewareThis middleware sets the download timeout for requests specified in the- :setting:`DOWNLOAD_TIMEOUT` setting.+ :setting:`DOWNLOAD_TIMEOUT` setting or :attr:`download_timeout`+ spider attribute.++.. note::++ You can also set download timeout per-request using+ :reqmeta:`download_timeout` Request.meta key; this is supported+ even when DownloadTimeoutMiddleware is disabled.HttpAuthMiddleware------------------diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rstindex b3e9d9a1d..68d87d04f 100644--- a/docs/topics/request-response.rst+++ b/docs/topics/request-response.rst@@ -229,6 +229,7 @@ Those are:* :reqmeta:`redirect_urls`* :reqmeta:`bindaddress`* :reqmeta:`dont_obey_robotstxt`+* :reqmeta:`download_timeout`.. reqmeta:: bindaddress@@ -237,6 +238,15 @@ bindaddressThe IP of the outgoing IP address to use for the performing the request.+.. reqmeta:: download_timeout++download_timeout+----------------++The amount of time (in secs) that the downloader will wait before timing out.+See also: :setting:`DOWNLOAD_TIMEOUT`.++.. _topics-request-response-ref-request-subclasses:Request subclassesdiff --git a/docs/topics/settings.rst b/docs/topics/settings.rstindex 89ee7605a..9000f0242 100644--- a/docs/topics/settings.rst+++ b/docs/topics/settings.rst@@ -416,6 +416,12 @@ Default: ``180``The amount of time (in secs) that the downloader will wait before timing out.+.. note::++ This timeout can be set per spider using :attr:`download_timeout`+ spider attribute and per-request using :reqmeta:`download_timeout`+ Request.meta key.+.. setting:: DUPEFILTER_CLASSDUPEFILTER_CLASS