Library for getting music and video in high quality from YouTube
Project description
MetamorProxies
MetamorProxies is a Python library that provides a collection of tools to manipulate, manage, and use proxies in web scraping, automation, or other network tasks. This library aims to simplify the handling of proxy servers, allowing users to seamlessly rotate, filter, and configure proxies in a clean, efficient manner.
Features
- Proxy Rotation : Easily rotate proxies to avoid being blocked by target servers.
- Custom Proxy Configuration : Configure proxies to fit your unique needs.
- Integration : Designed to integrate with common libraries like
requestsfor seamless proxy management. - Flexible API : Simple, intuitive API for proxy manipulation and usage.
- Extensible : Easy to extend for your own use cases.
Installation
Using pip (recommended)
MetamorProxies is available on PyPI, and you can install it with pip:
pip install metamorproxies
Alternatively, you can install the latest version directly from the GitHub repository:
pip install git+https://github.com/your-username/metamorproxies.git
From source
Clone the repository and install dependencies:
git clone https://github.com/your-username/metamorproxies.git
cd metamorproxies
pip install -r requirements.txt
python setup.py install
Usage
Here’s a simple example of how to use MetamorProxies with requests to rotate proxies.
import requests
from metamorproxies import ProxyManager
# Initialize ProxyManager
proxy_manager = ProxyManager()
# Get a random proxy from your list
proxy = proxy_manager.get_proxy()
# Use the proxy with requests
response = requests.get("https://example.com", proxies={"http": proxy, "https": proxy})
print(response.text)
Advanced Usage
Configuring Proxies
You can configure your proxy manager with a list of proxies or use different strategies for proxy rotation. Here's an example:
from metamorproxies import ProxyManager
proxy_list = [
"http://user:pass@proxy1.com:8080",
"http://user:pass@proxy2.com:8080",
"http://user:pass@proxy3.com:8080"
]
proxy_manager = ProxyManager(proxies=proxy_list)
Customizing Proxy Rotation Strategy
MetamorProxies allows you to customize how proxies are rotated or selected, making it suitable for specific use cases, such as avoiding IP bans.
proxy_manager.set_rotation_strategy('round_robin')
Documentation
For more detailed documentation on how to use MetamorProxies and all its features, check out the documentation.
Contributing
We welcome contributions from the community! If you’d like to contribute to MetamorProxies, please follow these steps:
- Fork the repository.
- Create a new branch (
git checkout -b feature-name). - Make your changes and commit them (
git commit -am 'Add feature'). - Push to your branch (
git push origin feature-name). - Open a pull request.
Please make sure your code follows the existing style conventions, and include tests for new features or fixes.
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 Distributions
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
File details
Details for the file metamorproxies-0.3.6-py3-none-any.whl.
File metadata
- Download URL: metamorproxies-0.3.6-py3-none-any.whl
- Upload date:
- Size: 3.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c4bbd35246daf32401e84669072de64e2e0ccb05659b28468289857d064cdede
|
|
| MD5 |
026aa9255adf2df3675ca247dc7580e3
|
|
| BLAKE2b-256 |
dfd021dde1e800fd84850cd0028542344509b9ec15bc66601113ec9353535fdc
|