Okay, so I wanted to keep better track of the hockey games this season. You know, not miss the ones I really wanted to see. I figured there had to be a way to pull the schedule into something I use all the time, like my Google Calendar. So, I started poking around.
Finding the Schedule
First things first, I needed the actual schedule. I went straight to the source – the official league website. Seemed like the most reliable place to get it. I found the schedule page no problem, but it wasn’t exactly in a format I could just copy and paste. They had it all laid out nicely for viewing, but not so much for, you know, using.
Getting it into a Useable Format
This is where it got a little tricky. I’m no programmer, so I was hoping for a simple solution. I poked around in the developer tools of my browser, inspecting the page source, and tried to make the raw data into something. I spent some time to find a way to automatically get and use the raw data.
Making It Pretty (and Useful)
I chose to try and get the schedule to automatically read from the schedule data.
- First: Read the raw data.
- Second:Make the date and time show.
- Third:Get the home and away team name.
So, there you have it. That’s how I went about wrangling the hockey schedule into something I could actually use. It wasn’t the smoothest process, but hey, I got there in the end. And now I won’t miss any games!