curl_cffi 代理配置
A Python HTTP client that impersonates a real browser's TLS and HTTP/2 fingerprint. 按下面的配置把它指向 Eveses 住宅池 — 地区写在用户名里,所以换国家不需要动其他任何设置。
proxy.eveses.com:12321 · SOCKS5 在 32325 · 199 个国家 · $7.35/GB 起
This is the library to reach for when a residential IP alone does not clear the block, because the thing being judged is the handshake rather than the address. Pass `impersonate` — without it you get libcurl's own fingerprint, which is as identifiable as requests'.
配置
from curl_cffi import requests
proxy = "http://eveses_user_country-us:[email protected]:12321"
r = requests.get(
"https://target-site.com",
impersonate="chrome", # without this, the TLS fingerprint is libcurl's
proxies={"http": proxy, "https": proxy},
timeout=30,
)
print(r.status_code, r.text[:200])curl_cffi 相关说明
Match the impersonation target to the User-Agent you send; claiming Chrome while handshaking as Safari is worse than not impersonating at all.
A residential IP and a browser fingerprint solve different halves of the same block — see the error pages for which is which.
换国家而不动 curl_cffi
eveses_user_country-deeveses_user_country-de_session-ab12cd34_lifetime-30m地区和会话都写在用户名里,而不是主机或端口。换国家时本页所有配置保持原样 — 你只改一个字符串。可定位 199 个国家,其中大多数还支持城市与州/省令牌。