Scrapy, a fast high-level web crawling & scraping framework for Python.
import scrapy class ExceptionSpider(scrapy.Spider): name = "exception" custom_settings = { "ITEM_PIPELINES": {"test_spider.pipelines.TestSpiderExceptionPipeline": 300} } def parse(self, response): pass