Skip to main content

A simple and quick way to get a proxy.

Project description

Documentation in Russian

pip install EasyProxies

См. также https://www.proxyscan.io/api

Python

Список из 20 прокси

from EasyProxies import Proxies, const

print(*Proxies.get(limit=const.Limit(20), format=const.Format.TXT), sep='\n')
# Тоже что и
print(*Proxies.get(limit=20, format='txt'), sep='\n')

Если format='json' (по умолчанию), будет возвращён список из классов ProxyDescriptor

@functools.total_ordering
class ProxyDescriptor(_AnyDescriptor):
    """A class for beautiful access to proxy attributes."""

    class Location(_AnyDescriptor):
        city: str
        continent: str
        country: str
        countryCode: str
        ipName: str
        ipType: str
        isp: str
        lat: str
        lon: str
        org: str
        query: str
        region: str
        status: str

    Ip: str
    Port: str
    Ping: int
    Time: int
    Type: list[str]
    Failed: bool
    Anonymity: str
    WorkingCount: int
    Uptime: float
    RecheckCount: int

    @property
    def as_requests_proxy(self) -> dict[str, str]:
        """
        Will result in a view for the proxy in the requests framework.
        {protocol: f'{protocol}://{ip}:{port}'}
        """
        ...

    def __lt__(self, other: ProxyDescriptor) -> bool:
        """Designed for sorting"""
        ...

    def __eq__(self, other): ...

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

EasyProxies-1.0.0.tar.gz (5.6 kB view details)

Uploaded Source

Built Distribution

EasyProxies-1.0.0-py3-none-any.whl (7.0 kB view details)

Uploaded Python 3

File details

Details for the file EasyProxies-1.0.0.tar.gz.

File metadata

  • Download URL: EasyProxies-1.0.0.tar.gz
  • Upload date:
  • Size: 5.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for EasyProxies-1.0.0.tar.gz
Algorithm Hash digest
SHA256 c6294e778c62748c4a9a1e8ebea5fb8b5ac65c1f3f6414e710184c516910ddc4
MD5 30ad2457be22956b2c53f7862e64d9f2
BLAKE2b-256 ac1b3510aff9570541b989892d0607dc1c7cc01039653a8b849be240db1c4f9f

See more details on using hashes here.

File details

Details for the file EasyProxies-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: EasyProxies-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 7.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.7.1 importlib_metadata/4.10.0 pkginfo/1.8.2 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for EasyProxies-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f72265d2cec9bcc9d8faeb520786f7813c54a431a4f71ef70b04a654b94f57b4
MD5 7f4e53ffb31250fce4e0a2a6d66b4677
BLAKE2b-256 472c87bdd4e25fd121a30024c9dbc8e238cb299bb9ec7d275e7f432a95b8f3e2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page