Scrapy, a fast high-level web crawling & scraping framework for Python.
replace list by generator also in start_requests method of Sitemap spider
Martin Olveyraf6179a927e55
diff --git a/scrapy/contrib/spiders/sitemap.py b/scrapy/contrib/spiders/sitemap.pyindex 91ae78c62..f96367905 100644--- a/scrapy/contrib/spiders/sitemap.py+++ b/scrapy/contrib/spiders/sitemap.py@@ -22,7 +22,7 @@ class SitemapSpider(BaseSpider):self._follow = [regex(x) for x in self.sitemap_follow]def start_requests(self):- return [Request(x, callback=self._parse_sitemap) for x in self.sitemap_urls]+ return (Request(x, callback=self._parse_sitemap) for x in self.sitemap_urls)def _parse_sitemap(self, response):if response.url.endswith('/robots.txt'):