Use "url" variable in the example

Instead of hardcoded http://www.example.com: without it url variable is unused and only one request will make it past dupefilter.
This commit is contained in:
Konstantin Lopuhin 2016-05-27 10:47:57 +03:00
parent d3ced85ec3
commit da8d0eadd6
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