In the feature/explore_data branch, I pulled down league-specific stats using the league number:
def league_specific_query(self, subquery="", league_number=None,):
'''
Returns an XML string
:param subquery:
:param league_number:
see also https://developer.yahoo.com/fantasysports/guide/players-collection.html
and https://developer.yahoo.com/fantasysports/guide/league-resource.html#league-resource-key_format
'league/{league_key}/players'
so for example "league/nfl.l.42"
'''
if not league_number:
league_number = input("League number is: ")
query = "league/nfl.l." + str(league_number) + subquery # get league info
return self.query_yahoo(query)
I need to either prompt the user, or read in a config file, or something.
In the feature/explore_data branch, I pulled down league-specific stats using the league number:
I need to either prompt the user, or read in a config file, or something.