From e053d05dfac58ea822fbfc255bca08a3ef277021 Mon Sep 17 00:00:00 2001 From: silva guimaraes Date: Sat, 28 Jun 2025 14:11:13 -0300 Subject: [PATCH] the one letter solution --- lib/lib.ml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/lib.ml b/lib/lib.ml index 6e1f0c8..7973403 100644 --- a/lib/lib.ml +++ b/lib/lib.ml @@ -219,7 +219,12 @@ let fetch_matches ctx = let g order = try sprintf - "https://www.sofascore.com/api/v1/unique-tournament/%d/season/%d/events/%s/0" + (* TLS fingerprinting is inplace and it's been used to block our requests once + their systems detect we've been abusing their private API. + TLS handshakes can only happen with secure connections using + HTTPS, so using plain HTTP makes it impossoble for that to happen, which they + do accept. *) + "http://www.sofascore.com/api/v1/unique-tournament/%d/season/%d/events/%s/0" ctx.id ctx.season order |> get |> Yojson.Safe.from_string |> api_events_of_yojson |> matches_of_api_events