Files
BOTKlining/testproxy.py
2024-06-17 10:53:33 +03:00

15 lines
432 B
Python

import aiohttp
import asyncio
async def fetch(session, url):
proxy_auth = aiohttp.BasicAuth('bots_man', 'Ax123456')
async with session.get(url, proxy='http://185.250.148.233:8899', proxy_auth=proxy_auth) as response:
return await response.text()
async def main():
async with aiohttp.ClientSession() as session:
html = await fetch(session, 'http://example.com')
print(html)
asyncio.run(main())