Skip to main content

Scrapy middleware with requests support as an alternative to Twisted calls.

Project description

scrapy-requests-downloader

PyPi

Scrapy middleware with requests support as an alternative to Twisted calls.

Dependencies :globe_with_meridians:

Installation :inbox_tray:

This is a python package hosted on pypi, so to install simply run the following command:

pip install scrapy-requests-downloader

Settings

REQUESTS_ENABLED

Whether the requests middle is used to process any request (defaults to false).

Meta field to enable/disable this per request is: requests_enabled

Usage example :eyes:

In order to use this plugin simply add the following settings and substitute your variables:

DOWNLOADER_MIDDLEWARES = {
    "requestsmiddleware.middleware.RequestsDownloaderMiddleware": 632
}

In order to use it as a downloader you can add the following to your settings:

REQUESTS_ENABLED = True

This will make every request use requests for a response.

License :memo:

The project is available under the MIT License.

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-requests-downloader-1.0.0.tar.gz (3.9 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