Tryag File Manager
Home
||
Turbo Force
||
B-F Config_Cpanel
Current Path :
/
opt
/
alt
/
python35
/
share
/
doc
/
alt-python35-idna-ssl-1.0.1
/
Or
Select Your Path :
Upload File :
New :
File
Dir
//opt/alt/python35/share/doc/alt-python35-idna-ssl-1.0.1/example.py
from idna_ssl import patch_match_hostname # noqa isort:skip patch_match_hostname() # noqa isort:skip import asyncio import aiohttp URL = 'https://цфоут.мвд.рф/news/item/8065038/' async def main(): async with aiohttp.ClientSession() as session: async with session.get(URL) as response: print(response) loop = asyncio.get_event_loop() loop.run_until_complete(main())