mirror of https://github.com/scrapy/scrapy.git
updated spider templates to reflect the new spider callback return policy
This commit is contained in:
parent
5862ba7db7
commit
ef0e5d368f
|
|
@ -7,7 +7,7 @@ class $classname(BaseSpider):
|
|||
)
|
||||
|
||||
def parse(self, response):
|
||||
return ()
|
||||
pass
|
||||
|
||||
SPIDER = $classname()
|
||||
|
||||
|
|
|
|||
|
|
@ -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 i
|
||||
|
||||
SPIDER = $classname()
|
||||
|
|
|
|||
Loading…
Reference in New Issue