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 details)

Uploaded Source

File details

Details for the file os_scrapy_httpproxy_middleware-0.0.2.tar.gz.

File metadata

  • Download URL: os_scrapy_httpproxy_middleware-0.0.2.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/50.0.3 requests-toolbelt/0.9.1 tqdm/4.48.2 CPython/3.6.7

File hashes

Hashes for os_scrapy_httpproxy_middleware-0.0.2.tar.gz
Algorithm Hash digest
SHA256 880979dac7440f59675253218ac160ca9ce10d4b78b665e2e7b09a82e7a14cb8
MD5 3560a76a157942823cf4571d95d182bf
BLAKE2b-256 af908aa26377b33b6ae0b2962abdf05355aa0e78a3190eb23f120c300ba36c37

See more details on using hashes here.

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