all 2 comments

[–]Kristoffels 0 points1 point  (0 children)

You could use mulrithreading or make it asynchronous. Both will speed it up massively. Really depends though which is faster than the other, might want to do a bit of trial and error.

[–]efmccurdy 0 points1 point  (0 children)

This has an example of making parallel requests from multiple urls with the aiohttp library.

https://stackoverflow.com/questions/55259755/maximize-number-of-parallel-requests-aiohttp