Advanced Python proxy rotation library with auto-fetching, validation, and persistence
Project description
⚡ 30-Second Setup
pip install proxywhirl
from proxywhirl import ProxyWhirl
rotator = ProxyWhirl(proxies=["http://p1:8080", "http://p2:8080"])
response = rotator.get("https://api.example.com/data")
# Dead proxies auto-ejected ✓ | Slow ones deprioritized ✓ | Fast ones favored ✓
🎯 Why ProxyWhirl?
|
9 Strategies Round-robin, weighted, geo-targeted, performance-based & more |
109 Sources Auto-fetch from built-in providers with validation |
Self-Healing Auto-eject dead proxies, circuit breakers, recovery |
Blazing Fast Async-first, <3μs selection, zero blocking |
🔄 Rotation Strategies
# Switch strategies on the fly
rotator = ProxyWhirl(strategy="performance-based")
rotator.set_strategy("geo-targeted", preferences={"US": [...], "EU": [...]})
| Strategy | Best For |
|---|---|
round-robin |
Even distribution |
random |
Unpredictable patterns |
weighted |
Favor reliable proxies |
performance-based |
Lowest latency |
geo-targeted |
Regional routing |
session-persistence |
Sticky sessions |
cost-aware |
Budget optimization |
composite |
Custom pipelines |
🎣 Auto-Fetch Proxies
from proxywhirl import ProxyFetcher
# Grab 300+ validated proxies in seconds
proxies = await ProxyFetcher().fetch_all(validate=True)
🖥️ Multiple Interfaces
|
Python API rotator.get(url)
rotator.post(url, json=data)
async with AsyncProxyWhirl() as async_rotator:
await async_rotator.get(url)
|
CLI proxywhirl fetch
proxywhirl pool list
proxywhirl health
|
REST API docker-compose up -d
curl localhost:8000/api/v1/proxies
|
📚 Learn More
📖 Full Documentation
🎯 Strategy Guide
🤖 MCP Server
📓 Examples
GitHub · Issues · MIT License
Built with ❤️ for ethical web automation
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
proxywhirl-0.3.2.tar.gz
(233.1 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
proxywhirl-0.3.2-py3-none-any.whl
(251.7 kB
view details)
File details
Details for the file proxywhirl-0.3.2.tar.gz.
File metadata
- Download URL: proxywhirl-0.3.2.tar.gz
- Upload date:
- Size: 233.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e0fb62876889b10a8be297fcd5c569b34dc63cfdb8361f9df34cbb5532625b26
|
|
| MD5 |
b3256cef462dfdffe69baaf132130b32
|
|
| BLAKE2b-256 |
7b1a4b7e9bdabb9e16caa261377faf3fcbc0657725cd363f40b6928d7254f019
|
File details
Details for the file proxywhirl-0.3.2-py3-none-any.whl.
File metadata
- Download URL: proxywhirl-0.3.2-py3-none-any.whl
- Upload date:
- Size: 251.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
fbdd981b4e11cad9fee2417180d34e3118db9d8dc045237da9448a4df5a3cceb
|
|
| MD5 |
9151897f40a17f8a7c0acfcefd2d5843
|
|
| BLAKE2b-256 |
331f896de303ce06b5d01b8eed8c968b94066b1248d5adec816a3704fb3d38ea
|