Skip to main content

MetamorProxies Logo

MetamorProxies

CI Status Code Coverage PyPI Version License


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

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 automation
  • webdriver-manager - For automatic Chrome driver management
  • requests - For HTTP requests and proxy testing
  • kitano - 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:

  1. Fork the repository.
  2. Create a new branch (git checkout -b feature-name).
  3. Make your changes and commit them (git commit -am 'Add feature').
  4. Push to your branch (git push origin feature-name).
  5. 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.

Metadata

Release files for metamorproxies 0.3.10.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for metamorproxies 0.3.10.6
File Interpreter ABI Platform Actions
metamorproxies-0.3.10.6-py3-none-any.whl Python 3 none any Details for metamorproxies-0.3.10.6-py3-none-any.whl

Release files / metamorproxies-0.3.10.6-py3-none-any.whl

Download URL metamorproxies-0.3.10.6-py3-none-any.whl
Size 5.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
27c6a38fb833eb9f2fb672dad45cf5d3293f721ebf31e516dcbfb4ea1f589dae
BLAKE2b-256 checksum
How to use checksums
778c51110531f8ba35edf6c543e54b885a3de03ca4bf687fb367446cb6fb1d80
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.3

Security for metamorproxies 0.3.10.6

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page