Help Accessing Box-Player Class #154
-
Would like to start this off by saying how impressed I am with this API, been looking for something like this for a while, and am having a lot of fun digging around in it. I am relatively new to coding, have some experience with HTML, Java and SQL, but not super familiar with Python. I am trying to access the Box Player class. Once I import my league and attach it to a variable 'league' this is my code: teams = league.teams player = team.roster[0] print(name, proj) Not sure what I am doing wrong. Any help is appreciated! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
Hey @Jfreundlich01, I am glad this package has been useful! So after you have created a League object the players on a teams roster is from the Player Class which just has all of the general information of that player across the season. If you want to get matchup and specific week player data you can call the I hope this helps! |
Beta Was this translation helpful? Give feedback.
Hey @Jfreundlich01, I am glad this package has been useful!
So after you have created a League object the players on a teams roster is from the Player Class which just has all of the general information of that player across the season. If you want to get matchup and specific week player data you can call the
league.box_scores()
interface which returns Box Score ClassI hope this helps!