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.
You can install the package via PyPI using pip:
pip install proxyverse
from proxyverse import ApiProxyVerse
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)
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())
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())
Constructor for ApiProxyVerse
.
- API_KEY: Your API key for accessing the Proxyverse API.
Gets a list of countries from the Proxyverse API.
- Returns: A list of dictionaries representing countries.
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.
For questions or support, please contact alexkorolex.