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