Sentry component for Scrapy
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
docs
example_project
scrapy_sentry
.gitignore
LICENSE
MANIFEST.in
README.md
scrapy.cfg
setup.py
tox.ini

README.md

scrapy-sentry

Logs Scrapy exceptions into Sentry

A python library that glues Sentry with Scrapy. Any spider errors will get pushed to Sentry. Please note that currently, exceptions anywhere else (e.g. the Scrapy pipeline) are not being reported to Sentry.

Requisites:

Installation

pip install scrapy-sentry

Setup

Add SENTRY_DSN and scrapy_sentry.extensions.Errors extension to your Scrapy Project settings.py.

Example:

# sentry dsn
SENTRY_DSN = 'http://public:secret@example.com/1'
EXTENSIONS = {
    "scrapy_sentry.extensions.Errors":10,
}

Supported versions

This package works with Python 2.7, 3.4 and 3.5. It has been tested with Scrapy up to version 1.2.1.