Skip to content

Repository files navigation

NFLFootballStats

Fantasy football owners and football enthusiasts need weekly NFL player stats to follow the the top players in the league. I discovered CBSSports hosts NFL stats in a table which can easily be scraped into a spreadsheet. Follow instructions below to get started. See Examples folder if you want to see the data retrieved

Get Started

  1. Download files
  2. Check requirements.txt and pip install anything missing (open command prompt and check "pip list" to see current packages)
  3. Run main.py in your favorite text editor (i'm assuming you know how to run a python program if you are on github)
    • executes DefenseStats.py, KickingStats.py, PassingStats.py, ReceivingStats.py, and RushingStats.py
      • scrapes and saves defense_data.csv, kick_stats.csv, passing_data.csv, receiving_stats.csv, and rushing_data.csv
  4. Open defense_data.csv, kick_stats.csv, passing_data.csv, receiving_stats.csv, and rushing_data.csv in Excel or Google Sheets

About

Scrape NFL player statistics from CBSSports

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages