Improve documentation
This commit is contained in:
parent
51f6f7174b
commit
63a45989f4
40 changed files with 956 additions and 420 deletions
29
docs/how-to-guides/scraping.ipynb
Normal file
29
docs/how-to-guides/scraping.ipynb
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
{
|
||||
"cells": [
|
||||
{
|
||||
"cell_type": "code",
|
||||
"execution_count": null,
|
||||
"metadata": {},
|
||||
"outputs": [],
|
||||
"source": [
|
||||
"import httpx\n",
|
||||
"\n",
|
||||
"transport = httpx.AsyncHTTPTransport(retries=2)\n",
|
||||
"limits = httpx.Limits(max_connections=None)\n",
|
||||
"timeout = httpx.Timeout(connect=60.0, read=300, write=60, pool=None)\n",
|
||||
"async with httpx.AsyncClient(\n",
|
||||
" transport=transport, limits=limits, timeout=timeout\n",
|
||||
") as client:\n",
|
||||
" pass"
|
||||
]
|
||||
}
|
||||
],
|
||||
"metadata": {
|
||||
"language_info": {
|
||||
"name": "python"
|
||||
},
|
||||
"orig_nbformat": 4
|
||||
},
|
||||
"nbformat": 4,
|
||||
"nbformat_minor": 2
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue