import soccerdata as sd
opta loader from soccer data
Setup a scraper for the 2021/2022 Premier League season
ws = sd.WhoScored(leagues="ENG-Premier League", seasons="2024-2025")
Scrape all games and return a OptaLoader object
api = ws.read_events(output_fmt='loader')
error : np.string_ was removed in the NumPy 2.0 release. Use np.bytes_ instead.
socceraction version : 1.5.3
numpy version : 1.26.4
python version : 3.10.16