Skip to content

Update to goodgame for the new rapidapi nonsesne - #1

Open
bryburgess wants to merge 4 commits into
doorknob60:masterfrom
bryburgess:master
Open

Update to goodgame for the new rapidapi nonsesne#1
bryburgess wants to merge 4 commits into
doorknob60:masterfrom
bryburgess:master

Conversation

@bryburgess

Copy link
Copy Markdown

The JSON architecture in the V2 rapidapi api-nba data is slightly different than v1, and it now loans that for users by default when they request api keys (like I did this afternoon setting this up locally). Updated with the params requirement and new subsetting calls, and created 'latest_game' before the loop to avoid some errors.

Neat script though! Getting it to work on my end was some fun tinkering around this afternoon.

P.S. Ignore the datetime import on line 3. I was trying to mess around with some ways to get both scores and standings from one high-level call, and the API needed a date in the params for that.

bryburgess and others added 4 commits December 30, 2022 17:15
…ly different than v1. Updated with the param requirement and new subsetting calls since getting the api keys now gives you V2 by default.
most recent game is no longer last item returned in api call, tinkering with the loop to more explicitly call most recent finished game
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant