Skip to content

[Basketball] Having trouble finding specific stats for player positions and lineup slots #545

Discussion options

You must be logged in to vote

Hey @zirekyle, you can get the slot position using box_scores and then accessing the teams lineup. Accessing would look something like this box[0].away_lineup[0].slot_position assuming box was the retuned valued from box_scores.

For the players position and lineup I am seeing the same thing where they are not correctly matching. Those values are set in this constants file and seems like they were just copied over from the NBA constants. The hard part of getting the correct values is having to look through ESPN's API calls and manually match those numbers to the actual positions.

I have a PR Here which I think has most of the positions, I still can't figure out what position 8 and 9 are.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@david-miller-wpe
Comment options

Answer selected by david-miller-wpe
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants