ccagrawal / sportsTools

R package for working with sports data
19 stars 8 forks source link

GetGameLogs not working #2

Closed johnricco closed 7 years ago

johnricco commented 7 years ago

GetGameLogs is not working right now. Something might be up with the API -- 'http://stats.nba.com/player/' does not load.

ccagrawal commented 7 years ago

Thanks for pointing this out. NBA.com must have changed their API requiring the User Agent to be specified. I added this in all the calls. The following works now:

sportsTools::GetGameLog(player = 'James Harden', year = 2015)