Open jeffreyho101 opened 4 years ago
For next year: consider using football-reference: https://www.pro-football-reference.com/years/2020/games.htm
using pro-football-reference for 2021. pythonanywhere scheduled tasks are limited to once a day, so maybe an "admin mode" to more easily update game results manually might be a nice add
The NFL's API looks legit, but apparently a key for it costs $$ I can't afford. Scraping nfl.com for such data is questionable in legality, as nfl.com is pretty uptight with regards to such (even for small projects).
For the purposes of building out an initial pickem, the schedules are most important. Scraping this from ESPN should be relatively simple as the HTML element associated here would make this as easy as some pandas df manipulation.
Populating scores, however, is still an issue. Scraping ESPN (or TSN or any other decent site)'s scoreboard could be of use especially if we wanted things like game time, spread/line, O/U on points, etc. Scraping this, however, could pose a far greater challenge by virtue of the way div's are structured on these sites.