Created
September 16, 2022 05:39
-
-
Save nalaekaw/c8ecc6b80aa1908b95020124753baddf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import asyncio | |
import aiohttp | |
url = '' | |
async def get_response(url): | |
async with aiohttp.ClientSession() as session: | |
async with session.get(url) as response: | |
# filename = response.content_disposition.filename | |
print(response) | |
if __name__ == "__main__": | |
loop = asyncio.get_event_loop() | |
loop.run_until_complete(get_response(url)) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment