Game by game coach data?
Looking for a resource that shows which coaches were active for each game. PFR has a general breakdown of coaching histories by season, but nothing that shows game by game which coaches were present.
Anyone know of such a resource?
Posted Jun 19, 2019, 3:45 AM UTC
64
If you don't mind scraping PDFs, you can get coaching data from http://nflgsis.com/ (login media:media). The Flip Card summary has rosters and and coaches. To get the Flip Card, go to the box scores for the week and click on the menu button to the right of STATS and GAME BOOK and select Flip Card. I just had to do this myself. Shitty thing is that there's so many different types of assistant coaches.
Example: http://www.nflgsis.com/2018/post/04/57833/LA_FlipCard.pdf
http://www.nflgsis.com/2018/{seasonType}/{week}/{gameKey}/{homeTeam}\_FlipCard.pdf
This is really interesting, thanks! This is more or less exactly what I'm looking for.
Are you automating pulling flip cards or manually downloading them? At first glance I'm not sure how to discover or predict gameKey. The site is heavily scripted and I'm not yet able to find how and where gameKey is created or displayed.
Pulling the PDFs manually is possible, there's only a few games a week. Just curious if you've had any luck with automation here.
Yeah that site's a pain in the ass, it's all websocket requests.
Are you using python? If you can get nfldb going on your machine, it'll have all the gamekeys in it.
https://github.com/BurntSushi/nfldb
or you can go directly with this repo below, it has all the json files in the repo too.
https://github.com/derek-adair/nflgame
Cool, nflgame looks promising. Poking through the code, looks like schedule data is retrieved from nfl.com. Schedules include the gsis gamekey, and I confirmed that key matches the value in the flipcard url when I composed a test schedule call and compared values to gsis.
Currently I'm scraping pro football ref, which is great for historical coaching data - relatively straightforward to parse out team coaching history tables, and the personal coaching histories of each coach included in the table. It's not a great resource for weekly coaching data although it appears I can probably get by pinging each team's page and finding the hc, oc, dc <p> elements. Getting that data straight from the flipcard looks way more reliable.
Should have what I need here, many thanks, huge help.