class TopSearchesSpider(CrawlSpider):
    name = 'topSearches'
allowed_domains = ['...domain...']
start_urls = 'http://...domain...',

def __init__(self, stats):
    super(TopSearchesSpider, self).__init__()
self.stats = stats

@classmethod
def from_crawler(cls, crawler):
    return cls(crawler.stats)

def parse_start_url(self, response):
    sel = Selector(response)
Как собрать статистику из обратного вызова паука scrapy?