def __init__(self): scrapy.Spider.__init__(self) pydispatch.dispatcher.connect(self.handle_spider_closed, signals.spider_closed) # all asin scrapied will store in the array self.asin_pool = []