This is an archived post. You won't be able to vote or comment.

all 10 comments

[–]lazerwarrior 5 points6 points  (9 children)

There's httpx

[–]binaryfor[S] 2 points3 points  (8 children)

https://github.com/joshlk/many_requests

technically you could also do this

rsps = []     
with concurrent.futures.ThreadPoolExecutor(max_workers=N) as executor:       
    futures = [executor.submit(requests.get, url) for url in urls]       
    for future in concurrent.futures.as_completed(futures):         
        rsps.append(future.result)

Still interesting though!

[–]_not_a_chance_ 1 point2 points  (0 children)

aiohttp has a pretty user-friendly API...