How to get back to the previous spider in Scrapy

Monday, July 7, 2014

I'm trying to do one thing. I have a spider written using Scrapy. It has a parse function like this



def parse(self, response):

...
for var in dict
...

scrapy.Request(link + var, callback=self.parse_info)


def parse_info(self, response)

...
do something


What I would like to do is to get data in parse_info after after finished come back to the parse method to continue the iteration. Does exist a way to do this in scrapy?







http://ift.tt/1odwkse