Skip to content

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

Update docs for meta key

harshasrinivas9d97d788c06c
diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst
index c3a454279..b808a6448 100644
--- a/docs/topics/downloader-middleware.rst
+++ b/docs/topics/downloader-middleware.rst
@@ -852,6 +852,11 @@ Default: ``2``
Maximum number of times to retry, in addition to the first download.
+.. reqmeta:: max_retry_times
+
+If :attr:`Request.meta <scrapy.http.Request.meta>` has ``max_retry_times`` key
+set to some value, this setting will be ignored by this middleware for the corresponding request.
+
.. setting:: RETRY_HTTP_CODES
RETRY_HTTP_CODES
diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst
index 67f8ec285..64a1e55fa 100644
--- a/docs/topics/request-response.rst
+++ b/docs/topics/request-response.rst
@@ -308,6 +308,7 @@ Those are:
* ``ftp_user`` (See :setting:`FTP_USER` for more info)
* ``ftp_password`` (See :setting:`FTP_PASSWORD` for more info)
* :reqmeta:`referrer_policy`
+* :reqmeta:`max_retry_times`
.. reqmeta:: bindaddress
@@ -342,6 +343,13 @@ download_fail_on_dataloss
Whether or not to fail on broken responses. See:
:setting:`DOWNLOAD_FAIL_ON_DATALOSS`.
+.. reqmeta:: max_retry_times
+
+max_retry_times
+---------------
+
+The meta key is used set retry times per request. When initialized, the :setting:`RETRY_TIMES` setting will be ignored by the downloader middleware.
+
.. _topics-request-response-ref-request-subclasses:
Request subclasses