How can I collect stats from within a spider callback?
Example
class MySpider(Spider):
name = "myspider"
start_urls = ["http://example.com"]
def parse(self, response):
stats.set_value('foo', 'bar')
Not sure what to import
or how to make stats
available in general.