{"provider_url":"https://hatena.blog","blog_url":"https://castaneai.hatenablog.com/","width":"100%","html":"<iframe src=\"https://hatenablog-parts.com/embed?url=https%3A%2F%2Fcastaneai.hatenablog.com%2Fentry%2F2019%2F01%2F30%2F174049\" title=\"python 3.7 aiohttp \u3092\u3064\u304b\u3063\u3066\u4e26\u5217\u30ea\u30af\u30a8\u30b9\u30c8 - castaneai\u306e\u30d6\u30ed\u30b0\" class=\"embed-card embed-blogcard\" scrolling=\"no\" frameborder=\"0\" style=\"display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;\"></iframe>","title":"python 3.7 aiohttp \u3092\u3064\u304b\u3063\u3066\u4e26\u5217\u30ea\u30af\u30a8\u30b9\u30c8","type":"rich","author_url":"https://blog.hatena.ne.jp/castaneai/","categories":["python","asyncio","aiohttp"],"blog_title":"castaneai\u306e\u30d6\u30ed\u30b0","published":"2019-01-30 17:40:49","height":"190","provider_name":"Hatena Blog","description":"\u6700\u8fd1\u3042\u307e\u308a python \u3092\u89e6\u3063\u3066\u306a\u304f\u3066\u3001\u4e45\u3057\u3076\u308a\u306b\u898b\u306b\u884c\u3063\u305f\u3089 async/await keyword \u304c\u5897\u3048\u3066\u305f\u3002\u3055\u3063\u305d\u304f http \u3067\u4e26\u5217\u30ea\u30af\u30a8\u30b9\u30c8\u3057\u3066\u307f\u308b\u3002 asyncio \u3092\u30d9\u30fc\u30b9\u306b\u3057\u305f http library aiohttp \u3092\u4f7f\u3063\u305f\u3002 import aiohttp import asyncio async def req(url): async with aiohttp.ClientSession() as client: async with client.get(url) as resp: await resp.text() print(f\"ok: {url}\") if _\u2026","version":"1.0","url":"https://castaneai.hatenablog.com/entry/2019/01/30/174049","image_url":null,"author_name":"castaneai"}