the one letter solution
This commit is contained in:
parent
d0e6aa9e24
commit
e053d05dfa
1 changed files with 6 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue