updated tls profiles #23
@@ -43,7 +43,19 @@ MAX_CURL_HANDLES = 64
|
|||||||
# no timeout of its own, so a wedged transfer would otherwise park whatever is
|
# no timeout of its own, so a wedged transfer would otherwise park whatever is
|
||||||
# closing the session, including an `async with` exit.
|
# closing the session, including an `async with` exit.
|
||||||
SESSION_CLOSE_TIMEOUT_SECONDS = 10
|
SESSION_CLOSE_TIMEOUT_SECONDS = 10
|
||||||
CLIENT_IDENTIFIERS = ["chrome", "chrome_android", "safari", "safari_ios"]
|
# Explicit curl_cffi profiles rather than the "chrome" / "chrome_android"
|
||||||
|
# aliases, which float to the newest build (chrome146 / chrome131_android in
|
||||||
|
# curl_cffi 0.15). Chrome 116, 123 and everything from 133a up were refused by
|
||||||
|
# B&H's Cloudflare on every try (2026-09-26); the ones listed passed.
|
||||||
|
CLIENT_IDENTIFIERS = [
|
||||||
|
"chrome119",
|
||||||
|
"chrome120",
|
||||||
|
"chrome124",
|
||||||
|
"chrome131",
|
||||||
|
"chrome131_android",
|
||||||
|
"safari",
|
||||||
|
"safari_ios",
|
||||||
|
]
|
||||||
CLIENT_TIMEOUT = aiohttp.ClientTimeout(
|
CLIENT_TIMEOUT = aiohttp.ClientTimeout(
|
||||||
total=TIMEOUT_SECONDS, sock_connect=30, sock_read=30
|
total=TIMEOUT_SECONDS, sock_connect=30, sock_read=30
|
||||||
)
|
)
|
||||||
|
|||||||
Reference in new issue
Block a user