Last active
September 9, 2015 18:36
-
-
Save ochawkeye/86f8cc138eab1bd4dec7 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import nfldb | |
db = nfldb.connect() | |
q = nfldb.Query(db) | |
q.game(season_year=2012, season_type='Regular') | |
q.player(full_name='Julian Edelman').play_player(offense_tds=1) | |
for g in q.as_games(): | |
print g | |
print '-'*79 | |
q = nfldb.Query(db) | |
q.game(season_year=2012, season_type='Regular') | |
q.player(full_name='Julian Edelman').play_player(offense_tds=1) | |
for p in q.as_plays(): | |
print p | |
""" | |
Regular 2012 week 3 on 09/23 at 07:20PM, NE (30) at BAL (31) | |
Regular 2012 week 11 on 11/18 at 03:25PM, IND (24) at NE (59) | |
Regular 2012 week 12 on 11/22 at 07:20PM, NE (49) at NYJ (19) | |
------------------------------------------------------------------------------- | |
(NE, OPP 7, Q2, 2 and 7) (:07) (Shotgun) T.Brady pass short middle to J.Edelman for 7 yards, TOUCHDOWN. | |
(NE, OPP 2, Q3, 3 and 2) (11:10) (Shotgun) T.Brady pass short left to J.Edelman for 2 yards, TOUCHDOWN. | |
(NE, OWN 44, Q2, 3 and 5) (3:17) (Shotgun) T.Brady pass deep left to J.Edelman for 56 yards, TOUCHDOWN. | |
[Finished in 0.4s] | |
""" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment