Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/m-vdb/sentry-scrapy

Scrapy integration with latest Sentry SDK
https://github.com/m-vdb/sentry-scrapy

error-handling integration scrapy sentry

Last synced: 2 months ago
JSON representation

Scrapy integration with latest Sentry SDK

Awesome Lists containing this project

README

        

# sentry-scrapy

[![Build Status](https://travis-ci.org/m-vdb/sentry-scrapy.svg?branch=master)](https://travis-ci.org/m-vdb/sentry-scrapy)
[![Coverage Status](https://coveralls.io/repos/github/m-vdb/sentry-scrapy/badge.svg?branch=master)](https://coveralls.io/github/m-vdb/sentry-scrapy?branch=master)
[![Pypi version](https://img.shields.io/pypi/v/sentry-scrapy.svg)](https://pypi.python.org/pypi/sentry-scrapy)

Scrapy integration with latest Sentry SDK

## Requirements

- Python3
- [`Scrapy`](https://docs.scrapy.org/en/latest/)
- [`sentry-sdk`](https://docs.sentry.io/quickstart?platform=python)

## Installation

Install with `pip`:

```bash
$ pip install sentry-scrapy
```

And in your Scrapy settings, configure Sentry as follows:

```python

# 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')
```