Scrapy, a fast high-level web crawling & scraping framework for Python.
updated spider templates to reflect the new spider callback return policy
Ismael Carnalesef0e5d368f18
diff --git a/scrapy/templates/spiders/basic.tmpl b/scrapy/templates/spiders/basic.tmplindex 75f2478d5..2e3baf992 100644--- a/scrapy/templates/spiders/basic.tmpl+++ b/scrapy/templates/spiders/basic.tmpl@@ -7,7 +7,7 @@ class $classname(BaseSpider):)def parse(self, response):- return ()+ passSPIDER = $classname()diff --git a/scrapy/templates/spiders/crawl.tmpl b/scrapy/templates/spiders/crawl.tmplindex d655ba26e..2d4f7fce6 100644--- a/scrapy/templates/spiders/crawl.tmpl+++ b/scrapy/templates/spiders/crawl.tmpl@@ -19,6 +19,6 @@ class $classname(CrawlSpider):#i['site_id'] = xs.select('//input[@id="sid"]/@value').extract()#i['name'] = xs.select('//div[@id="name"]').extract()#i['description'] = xs.select('//div[@id="description"]').extract()- return [i]+ return iSPIDER = $classname()