Merge pull request #2041 from scrapy/backport-1.1-pr2015

[backport][1.1] Use "url" variable in the example (PR #2015)
This commit is contained in:
Paul Tremberth 2016-06-08 17:39:15 +02:00
commit a04dbca22d
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