BurntSushi / nfldb

A library to manage and update NFL data in a relational database.
The Unlicense
1.07k stars 263 forks source link

2018 #297

Closed danielcroona closed 6 years ago

danielcroona commented 6 years ago

Can someone please remind me about how to get nfldb to download the 2018 schedule? The data is apparently there: http://www.nfl.com/ajax/scorestrip?season=2018&seasonType=REG&week=1

/usr/local/lib/python2.7/dist-packages/nflgame/update_sched.py --year 2018 and /usr/local/bin/nfldb-update --update-schedules just leaves me with the games from the 2017 season.

Thanks!

danielcroona commented 6 years ago

I don't know if this is an actual error in the code but changing row 21 in update_sched.py did it for me.

Change: for y in range(2009, cur_year+1):

To: for y in range(2009, cur_year+2):

Then run: python /usr/local/lib/python2.7/dist-packages/nflgame/update_sched.py --year 2018

followed by: /usr/local/bin/nfldb-update --update-schedules