Scrape Player’s data from ESPN using Python and Selenium

In this post, we’ll see how we can use Selenium with Python to scrape data from espn.

Note: Code given here is based on Python3.

Step1 : Get code given at

Step2: Install selenium package using pip3 install selenium command.

Step3: Install chrome driver. I am using a Mac and used brew cask install chromedriver command to install chrome driver. If you are using Windows, you can follow for installation.

Step4: In the code, change path for chrome driver(In my case it’s /usr/local/bin/chromedriver).I’ve set it as


That’s all. Now execute the code using python3 command.

Now we’ve got our data which you can format as per your requirement.