aiohttp限制併發量 - jenhaoyang/backend_blog GitHub Wiki

import aiohttp

connector = aiohttp.TCPConnector(limit_per_host=50)
client = aiohttp.ClientSession(connector=connector)

參考:
https://stackoverflow.com/a/43857526