Alright, folks, let’s dive into something I’ve been messing around with today – Jerami Grant’s stats. I’m a numbers guy, always have been, and I wanted to see if I could pull his recent performance data and maybe even do a little analysis. Nothing fancy, just a personal project.
![All Jerami Grant Stats: A Quick Look at Season Performance.](https://www.darkscape.net/wp-content/uploads/2025/02/97eba2c657ea3a690ddbd7ed74681c4a.png)
Getting Started
First things first, I needed to find a place to grab the data. I figured, where else should i look? I hopped on, did a search for “Jerami Grant stats”, and boom – I landed on the stats page. Easy enough.
Scraping the Data
Now, I didn’t want to manually copy and paste everything. That’s a headache. So, I decided to use a little bit of Python. I’ve been dabbling with it for a while, mainly for these kinds of little projects.
I fired up my trusty Jupyter Notebook. I used the ‘requests’ library to fetch the HTML content of the page. Then, and this is where it gets a bit cool, I used ‘Beautiful Soup’ to parse that HTML and make it easier to navigate.
Here’s a simplified version of what I did:
- Import Libraries: Got `requests` and `BeautifulSoup` ready to go.
- Fetch the Page: Used `*()` to grab the HTML.
- Parse the HTML: Created a `BeautifulSoup` object to work with the HTML.
Finding the Goods
The stats were all nicely organized in a table. Using Beautiful Soup, I found the table element and then looped through the rows to grab the individual data points – points, rebounds, assists, all that good stuff. It took a little bit of inspecting the HTML to figure out the right tags and classes, but it wasn’t too bad.
Storing the Data
Once I had the data, I wanted to store it in a way that was easy to work with. I decided to use a simple CSV file. Python’s ‘csv’ library made this super easy. I just created a writer object and wrote each row of data to the file.
What I Learned
I successfully pulled Grant’s stats for the recent games. It’s pretty satisfying to see those numbers lined up.I took look the his performace.
This was a fun little exercise. It’s a great way to combine my interest in basketball with my tinkering with Python. I feel like I got this project up and running pretty quickly!.