mirror of https://github.com/scrapy/scrapy.git
Bugfix in parse command
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40363
This commit is contained in:
parent
5bad79836f
commit
224d3c5185
|
|
@ -32,7 +32,7 @@ class Command(ScrapyCommand):
|
|||
response = responses[0]
|
||||
spider = spiders.fromurl(response.url)
|
||||
if opts.identify:
|
||||
result = spider.identify(response)
|
||||
result = spider.identify_products(response)
|
||||
elif hasattr(spider, 'parse_url'):
|
||||
result = spider.parse_url(response)
|
||||
else:
|
||||
|
|
|
|||
|
|
@ -92,7 +92,7 @@ class XMLFeedSpider(BasicSpider):
|
|||
or not using it (which just splits the tags using xpath)
|
||||
"""
|
||||
iternodes = True
|
||||
itertag = 'product'
|
||||
itertag = 'item'
|
||||
|
||||
def parse_item_wrapper(self, response, xSel):
|
||||
ret = self.parse_item(response, xSel)
|
||||
|
|
|
|||
Loading…
Reference in New Issue