Canada Basketball Analytics

How to Web Scrape Canadians in the NBA

We’d like to cover off how to pull a list of all currently active Canadians in the NBA using Python and some web scraping. This list is from the RealGM website.

Some prerequisites before continuing are to have Anaconda or some sort of way to develop Python code.

Anaconda

Anaconda is a free and open-source distribution of the Python and R programming languages for scientific computing that aims to simplify package management and deployment. To download and install please visit the Anaconda homepage.

The Code

Also available via GitHub.