Aiosocksy
SOCKS proxy client for aiohttp 3.x
Install / Use
/learn @romis2012/AiosocksyREADME
SOCKS proxy client for aiohttp 3.0+
DEPRECATED: please use new aiohttp-socks package
It`s a fork of aiosocks with minor fixes for aiohttp 3.0+ compatibility
Requirements
- Python >= 3.5.3
- aiohttp >= 3.0
Installation
pip install aiosocksy
Usage
import asyncio
import aiohttp
from aiosocksy import Socks5Auth
from aiosocksy.connector import ProxyConnector, ProxyClientRequest
async def fetch(url):
auth = Socks5Auth(login='...', password='...')
connector = ProxyConnector()
socks = 'socks5://127.0.0.1:1080'
async with aiohttp.ClientSession(connector=connector, request_class=ProxyClientRequest) as session:
async with session.get(url, proxy=socks, proxy_auth=auth) as response:
print(await response.text())
loop = asyncio.get_event_loop()
loop.run_until_complete(fetch('https://www.google.com/'))
see aiosocks for more examples
Related Skills
node-connect
342.5kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
claude-opus-4-5-migration
85.3kMigrate prompts and code from Claude Sonnet 4.0, Sonnet 4.5, or Opus 4.1 to Opus 4.5
frontend-design
85.3kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
model-usage
342.5kUse CodexBar CLI local cost usage to summarize per-model usage for Codex or Claude, including the current (most recent) model or a full model breakdown. Trigger when asked for model-level usage/cost data from codexbar, or when you need a scriptable per-model summary from codexbar cost JSON.
