From 1dea50ba0ddf2ee24af21b0ef7c1f489d40e8cac Mon Sep 17 00:00:00 2001 From: Luiz Silva Date: Fri, 6 Dec 2019 12:09:31 -0300 Subject: [PATCH] Update docs after suggestions --- docs/topics/request-response.rst | 3 +++ docs/topics/spider-middleware.rst | 4 +--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/topics/request-response.rst b/docs/topics/request-response.rst index 4cf367d96..2baf1f022 100644 --- a/docs/topics/request-response.rst +++ b/docs/topics/request-response.rst @@ -172,6 +172,9 @@ Request objects ``copy()`` or ``replace()`` methods, and can also be accessed, in your spider, from the ``response.meta`` attribute. + Values are only acessible on the next :class:`Response`, to forward a key/value + through subsequent responses see :class:`~scrapy.spidermiddlewares.stickymeta.StickyMetaParamsMiddleware`. + .. attribute:: Request.cb_kwargs A dictionary that contains arbitrary metadata for this request. Its contents diff --git a/docs/topics/spider-middleware.rst b/docs/topics/spider-middleware.rst index 863d70135..16a1de79d 100644 --- a/docs/topics/spider-middleware.rst +++ b/docs/topics/spider-middleware.rst @@ -463,11 +463,9 @@ StickyMetaParamsMiddleware When enabled and configured, this middleware forwards the desired :ref:`Request.meta ` parameters between ``Requests`` and ``Responses``. - The :class:`StickyMetaParamsMiddleware` can be configure though the ``sticky_meta_keys`` + The :class:`StickyMetaParamsMiddleware` can be configured through the :attr:`~scrapy.spiders.Spider.sticky_meta_keys` spider attribute. - * :attr:`~scrapy.spiders.Spider.sticky_meta_keys` - List of keys to be stickied. - See the difference between :ref:`topics-spiders` with and without the middleware: Without the middleware::