Auto Generated by os-scrapy-cookiecutter
Project description
os-scrapy-httpproxy-middleware
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
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
Close
Hashes for os_scrapy_httpproxy_middleware-0.0.2.tar.gz
Algorithm | Hash digest | |
---|---|---|
SHA256 | 880979dac7440f59675253218ac160ca9ce10d4b78b665e2e7b09a82e7a14cb8 |
|
MD5 | 3560a76a157942823cf4571d95d182bf |
|
BLAKE2b-256 | af908aa26377b33b6ae0b2962abdf05355aa0e78a3190eb23f120c300ba36c37 |