mirror of https://github.com/scrapy/scrapy.git
GUID wasnt being set when calling a spider's parse_url method (from the parse command). Fixed that.
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40368
This commit is contained in:
parent
22d713bba9
commit
6db6b8c52e
|
|
@ -81,6 +81,9 @@ class CrawlSpider(BasicSpider):
|
|||
if hasattr(self, callback_name):
|
||||
if extractor.match(response.url):
|
||||
ret.extend(getattr(self, callback_name)(response))
|
||||
for entry in ret:
|
||||
if isinstance(entry, ScrapedItem):
|
||||
self.set_guid(entry)
|
||||
return ret
|
||||
|
||||
class XMLFeedSpider(BasicSpider):
|
||||
|
|
|
|||
Loading…
Reference in New Issue