Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Use "url" variable in the example

Konstantin Lopuhinda8d0eadd6ad
diff --git a/docs/topics/downloader-middleware.rst b/docs/topics/downloader-middleware.rst
index 59a73493d..31545d548 100644
--- a/docs/topics/downloader-middleware.rst
+++ b/docs/topics/downloader-middleware.rst
@@ -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