https://github.com/llonchj/scrapy-sentry
Sentry component for Scrapy
https://github.com/llonchj/scrapy-sentry
Last synced: 5 months ago
JSON representation
Sentry component for Scrapy
- Host: GitHub
- URL: https://github.com/llonchj/scrapy-sentry
- Owner: llonchj
- License: bsd-3-clause
- Created: 2013-02-04T18:53:47.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2023-08-21T21:23:55.000Z (about 2 years ago)
- Last Synced: 2025-05-02T09:50:57.935Z (5 months ago)
- Language: Python
- Size: 35.2 KB
- Stars: 86
- Watchers: 7
- Forks: 25
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-scrapy - scrapy-sentry
README
scrapy-sentry
=============Logs Scrapy exceptions into Sentry
A python library that glues [Sentry](http://www.getsentry.com) with [Scrapy](http://www.scrapy.org).
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:
-----------* [Sentry server](http://www.getsentry.com/)
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.