Scrapy integration with latest Sentry SDK
- Python3
Scrapy
sentry-sdk
Install with pip
:
$ pip install sentry-scrapy
And in your Scrapy settings, configure Sentry as follows:
# configure the extensions
# https://doc.scrapy.org/en/latest/topics/extensions.html
EXTENSIONS = {
"sentry_scrapy.extension.SentryExtension": 10,
}
# initialize Sentry
# https://docs.sentry.io/quickstart?platform=python
import sentry_sdk
sentry_sdk.init(dsn='your dsn')