Skip to content

Instantly share code, notes, and snippets.

@ochawkeye
Created October 22, 2016 22:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ochawkeye/e13dcd8faa8a367676ca1a391718b1c7 to your computer and use it in GitHub Desktop.
Save ochawkeye/e13dcd8faa8a367676ca1a391718b1c7 to your computer and use it in GitHub Desktop.
import nfldb
db = nfldb.connect()
q = nfldb.Query(db)
q.game(season_year=2016, week=6)
for game in q.as_games():
print game
print game.winner, game.loser
@ochawkeye
Copy link
Author

Regular 2016 week 6 on 10/13 at 07:25PM, DEN (13) at SD (21)
SD DEN
Regular 2016 week 6 on 10/16 at 12:00PM, SF (16) at BUF (45)
BUF SF
Regular 2016 week 6 on 10/16 at 12:00PM, JAC (17) at CHI (16)
JAC CHI
Regular 2016 week 6 on 10/16 at 12:00PM, LA (28) at DET (31)
DET LA
Regular 2016 week 6 on 10/16 at 12:00PM, PIT (15) at MIA (30)
MIA PIT
Regular 2016 week 6 on 10/16 at 12:00PM, CIN (17) at NE (35)
NE CIN
Regular 2016 week 6 on 10/16 at 12:00PM, CAR (38) at NO (41)
NO CAR
Regular 2016 week 6 on 10/16 at 12:00PM, BAL (23) at NYG (27)
NYG BAL
Regular 2016 week 6 on 10/16 at 12:00PM, CLE (26) at TEN (28)
TEN CLE
Regular 2016 week 6 on 10/16 at 12:00PM, PHI (20) at WAS (27)
WAS PHI
Regular 2016 week 6 on 10/16 at 03:05PM, KC (26) at OAK (10)
KC OAK
Regular 2016 week 6 on 10/16 at 03:25PM, DAL (30) at GB (16)
DAL GB
Regular 2016 week 6 on 10/16 at 03:25PM, ATL (24) at SEA (26)
SEA ATL
Regular 2016 week 6 on 10/16 at 07:30PM, IND (23) at HOU (26)
HOU IND
Regular 2016 week 6 on 10/17 at 07:30PM, NYJ (3) at ARI (28)
ARI NYJ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment