the one letter solution

This commit is contained in:
silva guimaraes 2025-06-28 14:11:13 -03:00
parent d0e6aa9e24
commit e053d05dfa

View file

@ -219,7 +219,12 @@ let fetch_matches ctx =
let g order = let g order =
try try
sprintf 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 ctx.id ctx.season order
|> get |> Yojson.Safe.from_string |> api_events_of_yojson |> get |> Yojson.Safe.from_string |> api_events_of_yojson
|> matches_of_api_events |> matches_of_api_events