Update docs after suggestions

This commit is contained in:
Luiz Silva 2019-12-06 12:09:31 -03:00
parent 4db588be04
commit 1dea50ba0d
2 changed files with 4 additions and 3 deletions

View File

@ -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

View File

@ -463,11 +463,9 @@ StickyMetaParamsMiddleware
When enabled and configured, this middleware forwards the desired :ref:`Request.meta <topics-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::