From 4563cdf92067311a90f8dde78ed727e27e8187ce Mon Sep 17 00:00:00 2001 From: TPV Date: Sat, 26 Sep 2026 21:11:37 -0700 Subject: [PATCH] updated tls profiles --- src/monitor_utils/constants.py | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/src/monitor_utils/constants.py b/src/monitor_utils/constants.py index c2bb079..3b0f7b0 100644 --- a/src/monitor_utils/constants.py +++ b/src/monitor_utils/constants.py @@ -43,7 +43,19 @@ MAX_CURL_HANDLES = 64 # no timeout of its own, so a wedged transfer would otherwise park whatever is # closing the session, including an `async with` exit. 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( total=TIMEOUT_SECONDS, sock_connect=30, sock_read=30 ) -- 2.54.0