Skip to main content

Better proxy!

Project description

Better Proxy

Telegram channel PyPI version info PyPI supported Python versions

pip install better-proxy
import aiohttp
from better_proxy import Proxy
from aiohttp_socks import ProxyConnector


async def fetch(url):
    proxy = Proxy('socks5://user:password@127.0.0.1:1080')
    connector = ProxyConnector.from_url(proxy.as_url)
    
    async with aiohttp.ClientSession(connector=connector) as session:
        async with session.get(url) as response:
            return await response.text()

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

better_proxy-0.1.1.tar.gz (7.2 kB view details)

Uploaded Source

Built Distribution

better_proxy-0.1.1-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

Details for the file better_proxy-0.1.1.tar.gz.

File metadata

  • Download URL: better_proxy-0.1.1.tar.gz
  • Upload date:
  • Size: 7.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.2 Windows/10

File hashes

Hashes for better_proxy-0.1.1.tar.gz
Algorithm Hash digest
SHA256 4ebcf6a44744109083072031c07db178bf589d98783945083efed376a4ba31fa
MD5 400f75118f1eb2736f98b75bddfa9a17
BLAKE2b-256 daede9fb95552e7a99102a6ad479e96cc1c9444c0bd987e3d0947e4121abdb9b

See more details on using hashes here.

File details

Details for the file better_proxy-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: better_proxy-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 6.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: poetry/1.5.0 CPython/3.11.2 Windows/10

File hashes

Hashes for better_proxy-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 7ffd0ef296094e04be13514905b2be1b16faa7f19c842f144de92e16d55c35cb
MD5 b7096ec4d75626ff38eadf3a3d324fb0
BLAKE2b-256 f927ff3793e96df0191ef34e01f6c2b189b13002d6843345553fc59caf61998d

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