Why when replacing meta in method:
def parse_product(self, response): product = response.meta['product'] ......... new_meta= {} ......... response = response.replace(meta=new_meta) I get an error:
exceptions.TypeError: __init__() got an unexpected keyword argument 'meta' Python 2.7, Scrapy 0.24.4
response.meta = new_metaand you can add the outputprint(dir(response))- Igor Lavrynenkoexceptions.AttributeError: can't set attribute- skysetattr(response, '_{class_name}__meta'.format(class_name=type(response).__name__), new_meta)- Andrio Skur