This project has the objective to gather NFL data from the NFL website, it is focused on the individual stats from the first Superbowl season (1966) until the last season played.
It mixes Python and R coding, being used mostly the BeautifulSoup library for the Web Scrapper and dplyr and ggplot2 libraries for the Data Analysis and visualisation
The video below shows the cumulative yards race among active and retired players over the years
For the data gathering on the Jupyter notebook, there are two parameters that have to be set on the function getNFLData:
- Attribute: What kind of stats you want to gather, it could be:
- Passing
- Rushing
- Receiving
- Sacks
- Touchdowns
- and more (Check the Players stats)
- Season type: Nfl's playing period
- Offseason
- Regular Season
- Post-season and Superbowls
For now the Bar chart race is not very user friendly, but to change the attribute being used for the race just change the Yds variable name for the stats of your desire:
- Make a better interface to gather and create customs bar charts
- Integrating the two codes into one (Still too emotionally connected to R language haha)
- Or maybe two versions (with some language usage analysis)
- Create an web page for the data gathering
National Football League - NFL.com
