Scrapy http proxy middleware that gets proxy parameters from settings
Project description
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
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file proxy-middleware-0.1.1.tar.gz
.
File metadata
- Download URL: proxy-middleware-0.1.1.tar.gz
- Upload date:
- Size: 1.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 364a6a866065c15c6b69889a6c92d1bf1ca094069ef29df0f6c56e8891dc97e0 |
|
MD5 | eb5746f5400dab6efaf048bdcf930ebf |
|
BLAKE2b-256 | 6fc1677058fe000c4727f6f65e0d1296d04e9288621948e6fd02ce11a7f5432d |