A Python package for managing and using rotating proxies
Project description
Rotating Proxy
A Python package for managing and utilizing rotating proxies effectively. This module provides a simple and efficient way to handle multiple proxies, automatically switching between them to enhance web scraping or any HTTP requests that require anonymity.
Features
- Proxy Pool Management: Easily add, remove, and manage a list of proxies.
- Automatic Proxy Rotation: Automatically rotates through working proxies to ensure seamless web requests.
- Proxy Testing: Verifies the functionality of each proxy before use, maintaining a blacklist of failed proxies.
- Support for HTTP and SOCKS proxies: Works with different types of proxies to meet your needs.
Installation
You can install the package using pip:
pip install rotating_proxy
Usage
from rotating_proxy import ProxyPool
# Create a ProxyPool instance with your proxies
pool = ProxyPool([{'http': '192.140.42.83:31511'}, {'http': '131.153.187.5:50689'}])
# Get a working proxy
proxy = pool.rotate_proxy()
# Use the proxy for your requests
Contributing
Contributions are welcome! If you have suggestions for improvements or additional features, feel free to open an issue or submit a pull request. License
This project is licensed under the MIT License. See the LICENSE file for details.
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
rotating_proxy-0.1.3.tar.gz
(3.9 kB
view hashes)
Built Distribution
Close
Hashes for rotating_proxy-0.1.3-py3-none-any.whl
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 | 89c78393f59d781b3201f7585015554423a569fa0f77833cf439617cff0cfaac |
|
| MD5 | 28c11c6cd264c5f4eaed4aa59e94d136 |
|
| BLAKE2b-256 | cbf48f5b5c7643148872bbfecc6ff8a20ed06d0f4c03ea3f15bb0f8492d87518 |