Why I don’t believe this side hustle?

Jakub Jirak
2 min readJan 19, 2022

When I read this blog post I stay at point 3 and try to reply mentioned proof of concept. First of all, I start with finding some web pages that I can use to scrap or get sports data. I found interesting official NHL pages.

Screenshot of NHL page (Image courtesy of the author)

If we move to the stats page. And then move to teams. We will get this overview table.

Screenshot of the team stats page (Image courtesy of the author)

When we try to inspect the page it doesn’t take so much time, and we find out xhr request which gives data for the table in the picture.

Chrome dev tools (Image courtesy of the author)

When we copy the link for the summary we will get something like

https://api.nhle.com/stats/rest/en/team/summary?isAggregate=false&isGame=false&sort=%5B%7B%22property%22:%22points%22,%22direction%22:%22DESC%22%7D,%7B%22property%22:%22wins%22,%22direction%22:%22DESC%22%7D,%7B%22property%22:%22teamId%22,%22direction%22:%22ASC%22%7D%5D&start=0&limit=50&factCayenneExp=gamesPlayed%3E=1&cayenneExp=gameTypeId=2%20and%20seasonId%3C=20212022%20and%20seasonId%3E=20212022

--

--

Jakub Jirak
Jakub Jirak

Written by Jakub Jirak

Principal Software Engineer & Content creator | Writing about Technology, Apple, and Innovations. | Proud editor of Mac O'Clock.

No responses yet