added minor clarification on cookiejar request meta key usage

This commit is contained in:
Pablo Hoffman 2012-02-29 07:19:01 -02:00
parent 61df6b4691
commit 2b16ebdc11
1 changed files with 9 additions and 0 deletions

View File

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