exceptions.AttributeError: 'super' object has no attribute 'process_item'

12 views
Skip to first unread message

crawler

unread,
Apr 25, 2015, 10:33:17 AM4/25/15
to scrapy...@googlegroups.com

def process_item(self, item, spider):
if item.get("ImageUrl", None):
log.msg("this item is contains image url", spider=spider)
return super(filterPipeline, self).process_item(item, spider)
else:
return item


the exception:
return super(sqlResumePipeline, self).process_item(item, spider)
exceptions.AttributeError: 'super' object has no attribute 'process_item'

hope someone help me

devisri amigos

unread,
Apr 28, 2015, 11:44:59 PM4/28/15
to scrapy...@googlegroups.com
Can I know where you are writing this return thing??

crawler

unread,
May 7, 2015, 5:42:23 AM5/7/15
to scrapy...@googlegroups.com
i know the reason ,ths

在 2015年4月29日星期三 UTC+8上午11:44:59,devisri amigos写道:
Reply all
Reply to author
Forward
0 new messages