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
- Download files
- Check requirements.txt and pip install anything missing (open command prompt and check "pip list" to see current packages)
- 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
- executes DefenseStats.py, KickingStats.py, PassingStats.py, ReceivingStats.py, and RushingStats.py
- Open defense_data.csv, kick_stats.csv, passing_data.csv, receiving_stats.csv, and rushing_data.csv in Excel or Google Sheets