Stories from the Web Crawling trenches in blocking IO

Does Python asyncio use threads?

Author: Mohan Ganesan

Date: Mar 24, 2024

Python's asyncio module provides single-threaded concurrency using coroutines and an event loop. It can offload blocking IO and CPU-bound tasks to thread pools.

Tired of getting blocked while scraping the web?

ProxiesAPI handles headless browsers and rotates proxies for you.
Get access to 1,000 free API credits, no credit card required!