Home

Awesome

Scrapy Statsd Middleware

Usage

pip install scrapy-statsd-middleware
DOWNLOADER_MIDDLEWARES = {
  'statsd_middleware.StatsdMiddleware': 543,
}

SPIDER_MIDDLEWARES = {
  'statsd_middleware.StatsdMiddleware': 543,
}

There's also a few settings that you can use:

This will increment statsd with the following:

Example Implementation

An example implementation of this middleware is in /example. It includes a docker-compose file that describes how to use this middleware with statsd & graphite

Example Installation & Usage

You can see a live graphite dashboard at http://0.0.0.0/dashboard You should see stats show up under something like "stats.Z-MacBook-Pro.local.dmoz.spider_reqs_issued"

Development

You can run the tests via make test