Skip to content

Instantly share code, notes, and snippets.

@ric2b
ric2b / extensions.py
Last active March 28, 2021 01:35 — forked from Framartin/extensions.py
Simplest scrapy extension to send all errors and exceptions to Sentry
import sentry_sdk
import os
from scrapy.exceptions import NotConfigured
class SentryLogging(object):
"""
Send exceptions and errors to Sentry.
"""
@classmethod