Skip to main content

Crawlera middleware for Scrapy

Project description

=========
scrapy-crawlera
=========

.. image:: https://badge.fury.io/py/scrapy-crawlera.png
:target: http://badge.fury.io/py/scrapy-crawlera

.. image:: https://secure.travis-ci.org/scrapinghub/scrapy-crawlera.png?branch=master
:target: http://travis-ci.org/scrapinghub/scrapy-crawlera

scrapy-crawlera provides easy use of `Crawlera <http://scrapinghub.com/crawlera>`_ with Scrapy.

Installation
============

You can install scrapy-crawlera using pip::

pip install scrapy-crawlera

You can then enable the middleware in your `settings.py`::

DOWNLOADER_MIDDLEWARES = {
...
'scrapinghub.crawlera.CrawleraMiddleware': 600
}

There are two ways to specify credentials.

Through `settings.py`::

CRAWLERA_ENABLED = True
CRAWLERA_USER = 'username'
CRAWLERA_PASS = 'password'

Through spider attributes::

class MySpider:
crawlera_enabled = True
crawlera_user = 'username'
crawlera_pass = 'password'



Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

scrapy-crawlera-1.0.0.tar.gz (3.2 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page