- get_headers(url): Referer, Sec-Fetch-*, sec-ch-ua, API vs HTML Accept - httpx AsyncClient/ sync Client with optional HTTP/2 (h2 extra) - On 403/429/503/520-523/525/567 or request errors, retry via curl_cffi chrome124 impersonate - POST: Origin, Referer, Content-Type for form posts - kuaidaili/ip3366: forward get_headers(url=...) Made-with: Cursor
11 lines
195 B
Plaintext
11 lines
195 B
Plaintext
fastapi==0.104.1
|
|
uvicorn[standard]==0.24.0
|
|
aiosqlite==0.19.0
|
|
aiohttp==3.9.1
|
|
aiohttp-socks==0.9.1
|
|
beautifulsoup4==4.12.3
|
|
lxml==5.1.0
|
|
pydantic-settings==2.8.1
|
|
httpx[http2]==0.27.0
|
|
curl-cffi>=0.7.0
|