Make Better NBA PrizePick Selections & Webscraping With Selenium
This exercise was to figure out a way to use python to scrape data and present in a visually friendly way so that one can quickly make PrizePick selections
I'm an avid sports fan and play daily fantasy a lot (Fanduel, Draftkings, Prizepicks, etc). I had most of my succes with PrizePicks (particularly during the NBA season) My initial tedious process involved the following steps:
- Go to Prizepick and write down the players and their projected fantasy points
- Go to ESPN, search for each player and calculate their project fantasy score based on their last 10 game average using Excel
- Identify the players that have large disparities between their PrizePicks projections and ESPN projections
- Based on the disparities, make the Over/Under selection and win up to 10x your of whatever you gambled
Techniques used for this exercise include:
- Web Scraping With Selenium
- Using Dictionaries
- Looping over a list
- Looping over a dataframe
- Slicing a dataframe
Note: It typically scrapes the PrizePick site relatively fast. Make sure you give it some time and leave the browser open (and untouched) while it is scraping the NBA players' data on ESPN. This can take (3-5 minutes) depending on the number of players you scraped from ESPN.