Bugfix in parse command

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40363
This commit is contained in:
elpolilla 2008-11-04 13:27:31 +00:00
parent 5bad79836f
commit 224d3c5185
2 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -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)