Then extension for scrapy