From 0bb66df4870b969ce7b485807c3abe445b66e4f1 Mon Sep 17 00:00:00 2001 From: Ken Liang Date: Tue, 27 Aug 2024 11:06:31 -0400 Subject: [PATCH] Update ESPN API Base Endpoint --- dao/platforms/espn.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dao/platforms/espn.py b/dao/platforms/espn.py index 1932a234..bd22c6ec 100644 --- a/dao/platforms/espn.py +++ b/dao/platforms/espn.py @@ -54,7 +54,7 @@ def __init__(self, base_dir: Path, data_dir: Path, league_id: str, season: int, week_validation_function: Callable, save_data: bool = True, offline: bool = False): super().__init__( "ESPN", - "https://fantasy.espn.com", + "https://lm-api-reads.fantasy.espn.com", base_dir, data_dir, league_id, @@ -411,7 +411,7 @@ def map_data_to_base(self): - int(team_json["transactionCounter"].get("acquisitionBudgetSpent", 0)) ) base_team.url = ( - f"https://fantasy.espn.com/football/team" + f"https://lm-api-reads.fantasy.espn.com/football/team" f"?leagueId={self.league.league_id}&teamId={base_team.team_id}" )