I am unable print scraped value from pipeline using python scrapy.
in my python scrapy code i am yielding values to items container and these items values need to be store in pipeline and return value. But it was throwing me type errors. Could you please help me here.
pipeline.py
class JnjwcpocPipeline(object):
def process_item(self, item, spider):
print("Pipeline :" + item['product_item'][0])
return item
Pipeline : JNJ BABY SOAP
ERROR: Error processing {'product_item': None, 'wprice_item': None} Traceback (most recent call last):
current.result = callback(current.result, *args, **kw) print("Pipeline :" + item['product_item'][0])TypeError: 'NoneType' object is not subscriptable