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())
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
LICENSE | File | 1.13 KB | 0644 |
|
README.rst | File | 1.5 KB | 0644 |
|
example.py | File | 408 B | 0644 |
|