Add Emulator Support (#35)

* Add emulator

* Update limit for ESPM API

* use params

---------

Co-authored-by: Alex Resnick <adr8282@gmail.com>
This commit is contained in:
Alex Resnick
2025-09-14 15:44:50 -05:00
committed by GitHub
parent b82e904cb1
commit a5a9398c5c
8 changed files with 13 additions and 14 deletions

View File

@@ -229,8 +229,8 @@ class BaseNCAAFBManager: # Renamed class
self.logger.info(f"[NCAAFB] Fetching full {year} season schedule from ESPN API...")
try:
url = f"https://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard?dates={year}&seasontype=2"
response = self.session.get(url, headers=self.headers, timeout=15)
url = f"https://site.api.espn.com/apis/site/v2/sports/football/college-football/scoreboard"
response = self.session.get(url, params={"dates": year,"seasontype":2,"limit":1000},headers=self.headers, timeout=15)
response.raise_for_status()
data = response.json()
events = data.get('events', [])