from leeger.league_loader import YahooLeagueLoader from leeger.model.league import League if __name__ == "__main__": # You will need an application registered on the Yahoo Developer Site: https://developer.yahoo.com/apps/. # You will need your client ID and secret. # The app only needs to have read permissions. # The app will need to have a callback/redirect URI of https://localhost:8000 # Get a League object with years 2019 and 2020 for the Yahoo league with the most recent league ID of "123456". clientId = "dj4PTgx" clientSecret = "fb7" yahooLeagueLoader = YahooLeagueLoader( "42", [2022, 2023], clientId=clientId, clientSecret=clientSecret ) league: League = yahooLeagueLoader.loadLeague()