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
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file rotating_proxy-0.1.3.tar.gz
.
File metadata
- Download URL: rotating_proxy-0.1.3.tar.gz
- Upload date:
- Size: 3.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 97e75b48e8eeb14fc625b421308bd0c279bbad47431dfb652718549adcd7201e |
|
MD5 | 798c17c8b1f38dbe701eb4c5f9cc2bb1 |
|
BLAKE2b-256 | f8dda0d5c1ac96fe3523b8aa6c185ac309e5d5c1c9eaf1b7b217bcdf340d5d4e |
File details
Details for the file rotating_proxy-0.1.3-py3-none-any.whl
.
File metadata
- Download URL: rotating_proxy-0.1.3-py3-none-any.whl
- Upload date:
- Size: 4.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.9.9
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 89c78393f59d781b3201f7585015554423a569fa0f77833cf439617cff0cfaac |
|
MD5 | 28c11c6cd264c5f4eaed4aa59e94d136 |
|
BLAKE2b-256 | cbf48f5b5c7643148872bbfecc6ff8a20ed06d0f4c03ea3f15bb0f8492d87518 |