Links: PROGRAMMING - PYTHON
Rel: python 3rd party packages
Ref: docs
Tags: #public
like requests, but supports async
pip install httpx
import httpx
import httpx
async def get_html(url):
async with httpx.AsyncClient() as client:
resp = await client.get(url)
resp.wait_for_statuses()
return resp.text