asyncio + HTTPX
Overlap network waits
The fetcher schedules a task per URL. An asyncio semaphore caps in-flight page requests, and as_completed yields results as they finish.
PYTHON ASYNCIO
A Python CLI that fetches pages concurrently, respects site policies, and saves readable text as JSONL. See what happens when requests share the wait.
one request at a timeoverlapping requestsChange the concurrency limit and watch the Python fetcher process a batch. Each request uses a controlled HTTP response so you can repeat the same workload.
Ready to run
Two workloads show how overlapping requests affects wall time. Shorter bars mean the batch finished sooner.
1.63× speedup for ten live HTTPX requests. Wall time varies with the network and upstream server.
4.09× speedup for ten fixtures with 350–710 ms response delays, including HTML cleanup.
Each chart uses its own sequential time as the full bar. View the original asyncio benchmark script.
From a file of URLs to one JSON record per page, in completion order.
asyncio + HTTPX
The fetcher schedules a task per URL. An asyncio semaphore caps in-flight page requests, and as_completed yields results as they finish.
robots.txt + retries
The CLI caches robots rules, paces requests per host, and retries transient failures with jittered backoff or a numeric Retry-After.
BeautifulSoup + Pydantic
HTML cleanup runs outside the event loop. The CLI flushes each validated page record to JSONL, including status, attempts, and timing.