A Python package for interacting with the Proxyverse API
Project description
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.
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
File details
Details for the file proxyverse-0.1.0-py3-none-any.whl
.
File metadata
- Download URL: proxyverse-0.1.0-py3-none-any.whl
- Upload date:
- Size: 14.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | d5687059710a53a02fa97e43ac31484c44dc894121cb430966951553fccbcd2d |
|
MD5 | e67886a094083423323ab632abf00365 |
|
BLAKE2b-256 | 76dde6a9165eb60261e8fd846361abf86524040d3abf9b393bb605f0ec737c56 |