Welcome to python-proxy-headers’s documentation!¶
The python-proxy-headers package provides support for handling custom proxy headers when making HTTPS requests in various Python modules.
We currently provide extensions to the following packages:
urllib3 - HTTP client library
requests - Simple HTTP library for Python
aiohttp - Async HTTP client/server framework
httpx - Modern HTTP client library
pycurl - Python interface to libcurl
cloudscraper - Cloudflare bypass library
autoscraper - Smart automatic web scraper
Purpose¶
None of these modules provide good support for parsing custom response headers from proxy servers. And some of them make it hard to send custom headers to proxy servers. So we at ProxyMesh made these extension modules to support our customers that use Python and want to use custom headers to control our proxy behavior. But these modules can work for handling custom headers with any proxy.
If you are looking for Scrapy support, please see our scrapy-proxy-headers project.
Installation¶
To use these extension modules, you must first do the following:
Install the package:
pip install python-proxy-headers
Install the appropriate package based on the Python module you want to use.
This package does not have any dependencies because we don’t know which module you want to use.
You can also find more example code in our proxy-examples for python.
Contents¶
Contents: