Skip to content

dchen150/NBAFavoritePlayers

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NBAFavoritePlayers

This project web scrapes ESPN and allows users to access game log statistics from any current NBA player. Many stats and graphs are available regarding teams and/or players but this project is useful for looking specifically at how your favorite players' stats change throughout the season, providing useful insight on their performance.

Data scraped includes: date of game, opposing team, minutes played, field goal percentage, three point percentage, free throw percentage, rebounds, assists, blocks, steals, personal fouls, turn overs, and (of course) points.

The code will scrape the stats into a CSV file and update whenever a player has played a game. This data is graphed in real time using Chart.js, providing an elegent rendering of player's statistics on a graph. The graph allows for data selection such that users may select specific stats to look at instead of overlaying stats.

Technology Used

tldr: JavaScript, Node.js (asynchronous functions), request.js, cheerio.js, chart.js, HTTPS

How to use

  1. get to src file in the project through cmd or git bash
  2. type: node userinput.js
  3. answer the prompted questions
  4. data will be loaded into stats.csv
  5. type "live-server" in vscode terminal and a browser with graphing should appear!

About

Web scraping ESPN for any current NBA players' stats while providing an elegant rendering of overlaying stats on graphs

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published