1. DropItem,只能在item pipeline中使用
2. CloseSpider
def parse_page(self, response): if 'Bandwidth exceeded' in response.body: raise CloseSpider('bandwidth_exceeded')
3. IgnoreRequest
由Scheduler或者任何下载中间件发起
4. NotConfigured
5. NotSupported
1. DropItem,只能在item pipeline中使用
2. CloseSpider
def parse_page(self, response): if 'Bandwidth exceeded' in response.body: raise CloseSpider('bandwidth_exceeded')
3. IgnoreRequest
由Scheduler或者任何下载中间件发起
4. NotConfigured
5. NotSupported