python serial threading – multiprocessing what’s the fastest way to do this?

If I were to suggest anything, I would go with AIOHTTP. A sketch of the code:

import aiohttp
import asyncio

async def main(alink):
    links = [link_1, link_2, ..., link_n]
    matrix = []

    async with aiohttp.ClientSession() as session:
        async with session.get(alink) as resp:

if __name__ == "__main__":
    loop = asyncio.get_event_loop()
    for link in links:

CLICK HERE to find out more related problems solutions.

Leave a Comment

Your email address will not be published.

Scroll to Top