1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-23 16:03:56 +00:00

updating list of Request.meta special keys

This commit is contained in:
Elias Dorneles 2015-03-10 22:29:07 -03:00
parent f3110aaed1
commit f7031c08ff
4 changed files with 11 additions and 1 deletions

View File

@ -603,6 +603,8 @@ HttpProxyMiddleware
.. versionadded:: 0.8
.. reqmeta:: proxy
.. class:: HttpProxyMiddleware
This middleware sets the HTTP proxy to use for requests, by setting the

View File

@ -224,12 +224,15 @@ Those are:
* :reqmeta:`dont_redirect`
* :reqmeta:`dont_retry`
* :reqmeta:`handle_httpstatus_list`
* :reqmeta:`handle_httpstatus_all`
* ``dont_merge_cookies`` (see ``cookies`` parameter of :class:`Request` constructor)
* :reqmeta:`cookiejar`
* :reqmeta:`redirect_urls`
* :reqmeta:`bindaddress`
* :reqmeta:`dont_obey_robotstxt`
* :reqmeta:`download_timeout`
* :reqmeta:`download_maxsize`
* :reqmeta:`proxy`
.. reqmeta:: bindaddress

View File

@ -433,6 +433,8 @@ The maximum response size (in bytes) that downloader will download.
If you want to disable it set to 0.
.. reqmeta:: download_maxsize
.. note::
This size can be set per spider using :attr:`download_maxsize`

View File

@ -225,9 +225,12 @@ this::
.. reqmeta:: handle_httpstatus_list
.. reqmeta:: handle_httpstatus_all
The ``handle_httpstatus_list`` key of :attr:`Request.meta
<scrapy.http.Request.meta>` can also be used to specify which response codes to
allow on a per-request basis.
allow on a per-request basis. You can also set the meta key ``handle_httpstatus_all``
to ``True`` if you want to allow any response code for a request.
Keep in mind, however, that it's usually a bad idea to handle non-200
responses, unless you really know what you're doing.