mirror of https://github.com/scrapy/scrapy.git
added example about creating Requests with cookies
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40783
This commit is contained in:
parent
14ceca98bf
commit
11a9236125
|
|
@ -46,7 +46,11 @@ Request objects
|
|||
|
||||
``headers`` is a multi-valued dict containing the headers of this request
|
||||
|
||||
``cookies`` is a dict containing the request cookies
|
||||
``cookies`` is a dict containing the request cookies, and will be preserved
|
||||
for the rest of the domain crawl, like any browser would do. Example::
|
||||
|
||||
request_with_cookies = Request(url="http://www.example.com",
|
||||
cookies={currency='USD, country='UY'})
|
||||
|
||||
``encoding`` is a string with the encoding of this request. This encoding
|
||||
will be used to percent-encode the URL and to convert the body to str (when
|
||||
|
|
|
|||
Loading…
Reference in New Issue