Skip to content

Commit 394f2b3

Browse files
committed
fix(Sofascore): update unique-tournaments url
The API url for fetching the list of tournaments changed from "https://www.sofascore.com/api/v1/config/unique-tournaments/EN/football" to "https://www.sofascore.com/api/v1/config/default-unique-tournaments/EN/football"
1 parent a30d8c8 commit 394f2b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

soccerdata/sofascore.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ def read_leagues(self) -> pd.DataFrame:
7777
-------
7878
pd.DataFrame
7979
"""
80-
url = SOFASCORE_API + "config/unique-tournaments/EN/football"
80+
url = SOFASCORE_API + "config/default-unique-tournaments/EN/football"
8181
filepath = self.data_dir / "leagues.json"
8282
reader = self.get(url, filepath)
8383
data = json.load(reader)

0 commit comments

Comments
 (0)