PROGRAMMING
Python
Python from your first script to code you can maintain. Start here if you have never programmed.
0 likes
Likes for this tutorial.
Running Many Requests at Once With asyncio.gather
Level: Advanced
asyncio.gather runs many waiting tasks at once in one thread and returns results in order. Avoid await in a loop and blocking calls, keep failures with return_exceptions=True, and limit concurrency with a Semaphore.
7 min read
0 likes
Likes for this tutorial.
Speeding Up Many Downloads in Python With ThreadPoolExecutor
Level: Advanced
Downloads spend most of their time waiting. ThreadPoolExecutor lets many waits overlap: 20 half-second downloads in 2 seconds instead of 10. Handle failures with as_completed, pick a sensible worker count and respect the server.
6 min read