This commit is contained in:
2024-06-17 10:53:33 +03:00
commit a1da810c2d
22 changed files with 1253 additions and 0 deletions

14
testproxy.py Normal file
View File

@@ -0,0 +1,14 @@
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())