drbagwell / nba_origins

Mapping NBA players by country/state of origin since the start of the league

Home Page:https://bit.ly/nba-origins

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NBA Origins

I scraped data from basketball-reference.com about NBA players' birthplaces and high schools and used this to construct two interactive maps, and an interactive chart with data about players' home states/countries/cities.

I attached a timeline feature to view data from previous seasons and a few other toggles to look at data per capita (using historical population data I gathered), filter down to only all-stars, look at cumulative or active totals, and switch between viewing players by birthplace or high school location.

I used:

  • Python requests/beautiful soup to gather data
  • Flask as a web server
  • D3.js to build the visualizations
  • Heroku to host the project

This project is live here: https://bit.ly/nba-origins

About

Mapping NBA players by country/state of origin since the start of the league

https://bit.ly/nba-origins


Languages

Language:JavaScript 56.1%Language:HTML 28.2%Language:Python 11.2%Language:CSS 4.5%Language:Shell 0.1%