Scrapy spider not terminating with use of CloseSpider extension
问题 I have set up a Scrapy spider that parses an xml feed, processing some 20,000 records. For the purposes of development, I'd like to limit the number of items processed. From reading the Scrapy docs I identified I need to use the CloseSpider extension. I have followed the guide on how to enable this - in my spider config I have the following: CLOSESPIDER_ITEMCOUNT = 1 EXTENSIONS = { 'scrapy.extensions.closespider.CloseSpider': 500, } However, my spider never terminates - I'm aware that the