Skip to main content

Auto Generated by os-scrapy-cookiecutter

Project description

os-scrapy-httpproxy-middleware

Build Status codecov PyPI - Python Version PyPI

This project provide middleware to enhance Scrapy built-in HttpProxyMiddleware. You can set proxy without sheme as the following format:

[user:password@]proxy:port

Install

pip install os-scrapy-httpproxy-middleware

You can run example spider directly in the project root path

scrapy crawl example

Usage

Settings

  • enable middleware, it is better disable Scrapy built-in HttpProxyMiddleware

    DOWNLOADER_MIDDLEWARES = {
        "scrapy.downloadermiddlewares.httpproxy.HttpProxyMiddleware": None,
        "os_scrapy_httpproxy_middleware.middlewares.HttpProxyMiddleware": 750,
    }
    

Unit Tests

sh scripts/test.sh

License

MIT licensed.

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

os_scrapy_httpproxy_middleware-0.0.2.tar.gz (5.4 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