Library for working wih proxies
Project description
MetamorProxies
MetamorProxies is a Python library that provides tools for web automation and proxy management. This library includes functionality for taking website screenshots and testing SOCKS5 proxies, making it useful for web scraping, automation, and network testing tasks.
Features
- Website Screenshots : Capture screenshots of websites using headless Chrome browser
- Proxy Testing : Test SOCKS5 proxies for functionality and reliability
- Proxy Management : Fetch and validate proxy lists from external sources
- Headless Automation : Run browser automation without GUI
- Flexible Configuration : Customizable screenshot settings and proxy testing parameters
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
Taking Website Screenshots
The main functionality of MetamorProxies is capturing screenshots of websites using the PrintWeb class:
from metamorproxies.soldier import PrintWeb
# Initialize PrintWeb with URL and output path
url = "https://www.example.com"
output_path = "screenshot.png"
printer = PrintWeb(url, output_path)
# Take the screenshot
printer.take_screenshot()
print(f"Screenshot saved as {output_path}")
Advanced Screenshot Usage
You can also change the output path after initialization:
from metamorproxies.soldier import PrintWeb
# Initialize with default output path
printer = PrintWeb("https://www.example.com")
# Change the output path
printer.set_path("custom_screenshot.png")
#Change driver service path
chromedriver_path = os.path.join(os.path.dirname(__file__), '/drivers/', 'chromedriver')
printer.set_service(chromedriver_path)
# Add driver arguments
printer.add_argument("--hide-scrollbars")
# Change the size window
printer.set_window_size(1200,800)
# Take the screenshot
printer.take_screenshot()
# kill the process driver
printer.kill_driver()
Dependencies
MetamorProxies requires the following main dependencies:
selenium- For browser automationwebdriver-manager- For automatic Chrome driver managementrequests- For HTTP requests and proxy testingkitano- Additional utility library
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.
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 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.10.6-py3-none-any.whl.
File metadata
- Download URL: metamorproxies-0.3.10.6-py3-none-any.whl
- Upload date:
- Size: 5.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
27c6a38fb833eb9f2fb672dad45cf5d3293f721ebf31e516dcbfb4ea1f589dae
|
|
| MD5 |
0cb24b5b8d182778329697e21960adb1
|
|
| BLAKE2b-256 |
778c51110531f8ba35edf6c543e54b885a3de03ca4bf687fb367446cb6fb1d80
|