Skip to main content

Proxyverse

Proxyverse is a Python package for interacting with the Proxyverse API. It provides methods for making GET and POST requests to retrieve information about countries and generate proxy lists.

Installation

You can install the package via PyPI using pip:

pip install proxyverse

Usage

Importing the Package

from proxyverse import ApiProxyVerse

Example Usage

Creating an Instance

To use the package, you need to create an instance of ApiProxyVerse with your API key:

api_key = "your_api_key_here"
proxy_verse = ApiProxyVerse(api_key)

Getting the List of Countries

You can get a list of countries with the following method:

import asyncio

async def get_countries():
    countries = await proxy_verse.get_request_verse.get_countries()
    print(countries)

asyncio.run(get_countries())

Generating a List of Proxies

To generate a list of proxies, use the generate_list_proxies method. Here’s an example:

async def generate_proxies():
    proxies = await proxy_verse.post_request_verse.generate_list_proxies(
        protocol="http",
        types="sticky",
        period=10,
        server="us",
        amount=5,
        country="US",
        region=None,
        user_id=None
    )
    print(proxies)

asyncio.run(generate_proxies())

API Reference

ApiProxyVerse

__init__(API_KEY: str)

Constructor for ApiProxyVerse.

  • API_KEY: Your API key for accessing the Proxyverse API.

async get_countries() -> List[Dict]

Gets a list of countries from the Proxyverse API.

  • Returns: A list of dictionaries representing countries.

`async generate_list_proxies(

protocol: str,
types: str,
period: int,
server: str,
amount: int,
country: str,
region: Optional[str] = None,
user_id: Optional[str] = None

) -> List[Dict]`

Generates a list of proxies with specified parameters.

  • protocol: Protocol type (e.g., "http" or "ssl").

  • types: Proxy type (e.g., "sticky" or "rotating").

  • period: Session period, only applicable to "sticky" proxies (10 or 30).

  • server: Server location (e.g., "nearest", "us", "eu", "as").

  • amount: Number of proxies to generate.

  • country: Abbreviated country code.

  • region: Optional region for the proxy.

  • user_id: Optional user ID for generating a proxy for a specific account.

  • Returns: A list of dictionaries representing proxies.

Contact

For questions or support, please contact alexkorolex.

Metadata

Release files for proxyverse 0.1.0

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 proxyverse 0.1.0
File Interpreter ABI Platform
proxyverse-0.1.0-py3-none-any.whl Python 3 none any Details

Release files / proxyverse-0.1.0-py3-none-any.whl

Download URL proxyverse-0.1.0-py3-none-any.whl
Size 14.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5687059710a53a02fa97e43ac31484c44dc894121cb430966951553fccbcd2d
BLAKE2b-256 checksum
How to use checksums
76dde6a9165eb60261e8fd846361abf86524040d3abf9b393bb605f0ec737c56
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release history Release notifications | RSS feed

This release

0.1.0 This release

1 release file

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