Metadata-Version: 1.0
Name: scrapy-sentry
Version: 0.1
Summary: Sentry component for Scrapy
Home-page: https://github.com/llonchj/scrapy-sentry
Author: Jordi Llonch
Author-email: llonchj@gmail.com
License: BSD
Description: scrapy-sentry
        =============
        
        A python library that glues [Sentry](http://www.getsentry.com) with [Scrapy](http://www.scrapy.org).
        
        Features
        --------
        
        * Allows logging of exceptions into Sentry
        
        Installation
        ------------
        
          ```
          pip install scrapy-sentry
          ```
        
        Setup (Method 1)
        ----------------
        
        Append the following code at the end of `settings.py`:
        
          ```
          # log into sentry
          SENTRY_DSN = 'http://public:secret@example.com/1'
        
          import scrapy_sentry
          scrapy_sentry.init(SENTRY_DSN)
        
          ```
        
        Replace SENTRY_DSN with the right one for your project, or you can invoke scrapy with the SENTRY_DSN environment variable.
        
        Setup (Method 2)
        ----------------
        Use the provided middleware in `settings.py`:
        
          ```
          # log into sentry
          SENTRY_DSN = 'http://public:secret@example.com/1'
        
          SPIDER_MIDDLEWARES = {
              'scrapy_sentry.middlewares.SentryMiddleware': 10,
          }
        
          DOWNLOADER_MIDDLEWARES = {
              'scrapy_sentry.middlewares.SentryMiddleware': 10,
          }
        
          ```
        
        Example Project
        ---------------
        Try the example project.
        
          ```
          env SENTRY_DSN="" scrapy crawl example
        
Platform: UNKNOWN
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: License :: OSI Approved :: BSD License
Classifier: Operating System :: OS Independent
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Environment :: Console
Classifier: Topic :: Software Development :: Libraries :: Application Frameworks
Classifier: Topic :: Software Development :: Libraries :: Python Modules
Classifier: Topic :: Internet :: WWW/HTTP
