mirror of https://github.com/scrapy/scrapy.git
added minor clarification on cookiejar request meta key usage
This commit is contained in:
parent
61df6b4691
commit
2b16ebdc11
|
|
@ -195,6 +195,15 @@ For example::
|
|||
yield Request("http://www.example.com", meta={'cookiejar': i},
|
||||
callback=self.parse_page)
|
||||
|
||||
Keep in mind that the :reqmeta:`cookiejar` meta key is not "sticky". You need to keep
|
||||
passing it along on subsequent requests. For example::
|
||||
|
||||
def parse_page(self, response):
|
||||
# do some processing
|
||||
return Request("http://www.example.com/otherpage",
|
||||
meta={'cookiejar': response.meta['cookiejar']},
|
||||
callback=self.parse_other_page)
|
||||
|
||||
.. setting:: COOKIES_ENABLED
|
||||
|
||||
COOKIES_ENABLED
|
||||
|
|
|
|||
Loading…
Reference in New Issue