Skip to content

amahini95/NBA-Web-Scraping

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

NBA Web Scraping

Gathering NBA stats across any team and any season using Python, Pandas, BeautifulSoup, and RegEx

To run code

Go to the project's root directory, run the following command

python3 main.py [command] --season [year as an int in YYYY format] --team [team abbreviation in 3 capitals chars]

Where command is one of the following:

  1. all: Retrieves all stats/player info across all teams in one season
  2. player: Retrieves game stats for one team in one season
  3. twitter: Retrieves one team's players' Twtiter handles (currently being updated)
  4. personal: Retrieves one team's players' height, weight and position (currently being updated)

Running the command

python3 main.py [command]

where [command] is any command except for all

will, by default, return the corresponding stats/info for the Golden State Warriors' 2021-2022 NBA regular season

About

Gathering NBA stats across any team and any season

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages