Merge pull request #2015 from lopuhin/patch-1

[MRG+1] Use "url" variable in the example
This commit is contained in:
Paul Tremberth 2016-06-06 16:11:29 +02:00
commit f929853cc9
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ There is support for keeping multiple cookie sessions per spider by using the
For example::
for i, url in enumerate(urls):
yield scrapy.Request("http://www.example.com", meta={'cookiejar': i},
yield scrapy.Request(url, meta={'cookiejar': i},
callback=self.parse_page)
Keep in mind that the :reqmeta:`cookiejar` meta key is not "sticky". You need to keep