Suppose I have a Bookitem, I need to add information to it in both the parse phase and detail phase
def parse(self, response) data = json.loads(response)
There is an argument named meta for Request:
meta
yield Request(url, callback=self.detail, meta={'item': item})
then in function detail, access it this way:
detail
item = response.meta['item']
See more details here about jobs topic.