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地域とセッションはユーザー名の中にあり、ホストやポートにはありません。国を変えてもこのページの設定はそのままで、書き換えるのは1つの文字列だけです。199か国を指定でき、その多くでは都市・州のトークンも使えます。