From b59c87546727a44c26e43810600a30f71196a8cd Mon Sep 17 00:00:00 2001 From: Pieter Robberechts Date: Fri, 23 Aug 2024 17:43:52 +0200 Subject: [PATCH] feat(sofascore): support 2nd tier leagues Adds support for adding custom leagues that are not one of the 'top-tournaments'. Fixes #679 --- soccerdata/sofascore.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/soccerdata/sofascore.py b/soccerdata/sofascore.py index 38e8e7c..50e96d0 100644 --- a/soccerdata/sofascore.py +++ b/soccerdata/sofascore.py @@ -86,7 +86,7 @@ def read_leagues(self) -> pd.DataFrame: ------- pd.DataFrame """ - url = SOFASCORE_API + "config/top-unique-tournaments/EN/football" + url = SOFASCORE_API + "config/unique-tournaments/EN/football" filepath = self.data_dir / "leagues.json" reader = self.get(url, filepath) data = json.load(reader)