1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 13:23:54 +00:00

fixed crawlspider bug introduced after scheduler refactoring

This commit is contained in:
Pablo Hoffman 2011-08-03 20:25:14 -03:00
parent cb95d7a5af
commit cd8470b309

View File

@ -53,7 +53,7 @@ class CrawlSpider(BaseSpider):
links = rule.process_links(links)
seen = seen.union(links)
for link in links:
r = Request(url=link.url, callback='_response_downloaded')
r = Request(url=link.url, callback=self._response_downloaded)
r.meta.update(rule=n, link_text=link.text)
yield rule.process_request(r)