Skip to main content

Scrapy http proxy middleware that gets proxy parameters from settings

Project description

PyPI Version

Scrapy middleware that reads proxy config from settings.

Install:

pip install proxy-middleware

Usage: add it to DOWNLOADER_MIDDLEWARES in scrapy settings:

DOWNLOADER_MIDDLEWARES = {
   'proxy_middleware.ProxyFromSettingsMiddleware': 10,
   ...

Pass proxy config via HTTP_PROXY and HTTPS_PROXY settings variables. HTTPPROXY_AUTH_ENCODING is also respected:

scrapy crawl my-spider -s HTTP_PROXY=http://localhost:8118

License is MIT.

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

proxy-middleware-0.1.0.tar.gz (1.8 kB view details)

Uploaded Source

File details

Details for the file proxy-middleware-0.1.0.tar.gz.

File metadata

File hashes

Hashes for proxy-middleware-0.1.0.tar.gz
Algorithm Hash digest
SHA256 3ac3528cf335f39f364da13009eafe7ad9d70cd443dbda11235f5d7b0cbf3d53
MD5 12f16bceaf40b47d0bb0b8b30eb8ac6e
BLAKE2b-256 f6774deff8734b654d6f65247a1763ca5a2f9eff1d0fc971321bdcfaade8d569

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