具体可以在穿云云代理后台操作:https://console.cloudbypass.com/#/proxy/account
# Use python to aiohttp https://example.com/ import aiohttp import asyncio async def fetch(session): host = '' port = username = '' password = '' url = 'https://example.com/' proxy_url = f'http://{username}:{password}@{host}:{port}' async with session.get(url, proxy=proxy_url) as response: return await response.text() async def main(): async with aiohttp.ClientSession() as session: html = await fetch(session) print(html) if __name__ == '__main__': loop = asyncio.get_event_loop() loop.run_until_complete(main())
注意:穿云动态代理IP仅提供海外代理IP,在中国大陆IP环境下直连时可能会出现不稳定的情况,但您可以部署在香港等境外服务器上使用,如在电脑本机或智能手机上使用时可以部署全局NPV加速器来辅助使用。