this post was submitted on 23 Sep 2023
15 points (100.0% liked)
Hockey
652 readers
3 users here now
Rules
- No bigotry - including racism, sexism, ableism, homophobia, transphobia, or xenophobia.
- Be respectful, especially when disagreeing. Everyone should feel welcome here.
- No porn.
- No Ads / Spamming.
List of Team-Specific Communities:
Metropolitan Division
- Carolina Hurricanes
- Washington Capitals
- Columbus Blue Jackets
- New Jersey Devils
- New York Islanders
- New York Rangers
- Pittsburgh Penguins
- Philadelphia Flyers
Atlantic Division
- Toronto Maple Leafs
- Montreal Canadiens
- Boston Bruins
- Ottawa Senators
- Tampa Bay Lightning
- Buffalo Sabres
- Detroit Red Wings
- Florida Panthers
Central Division
- Chicago Blackhawks
- Winnipeg Jets
- Nashville Predators
- Arizona Coyotes
- Dallas Stars
- St Louis Blues
- Minnesota Wild
- Colorado Avalanche
Pacific Division
- Los Angeles Kings
- Edmonton Oilers
- Calgary Flames
- Anaheim Ducks
- Vancouver Canucks
- San Jose Sharks
- Vegas Golden Knights
- Seattle Kraken
founded 3 years ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
It worked!
Okay, so there was a lot of panic starting yesterday at around 2 PM, because after I got the bot working perfectly, the NHL SHUT DOWN their API and put a new one up that was completely different, with all different URLs and no documentation whatsoever. Some guys (who are WAY smarter than me) spent all day and night reverse engineering the new API... and then the old one came back up. If I had to guess, I'd say the old one is currently in the process of being replaced, so I am probably going to need to rewrite a lot of this bot. :(
I'll do my best to help with that rewrite.
I would really appreciate the help! I am going to wait until they are done documenting the new API before I start on that, which will optimistically be early next week. Currently some weird stuff will need to be done, because there is no known way to get scoring plays or penalty plays, so we would need to iterate through all the plays and look for "type": "goal" for all 350+ plays. And I really don't want to do that if it can be avoided.
That almost seems like it's not worth the trouble. At best, you'd end up with rubbish performance because of the reasons you mention.
I think I'm gonna have to do it anyway, unfortunately. It looks like the old API isn't updating.
Either that, or you could save the pain and wait until the docs release?
Thanks for all of your work on this, it's appreciated.
Absolutely no problem. I really wanted this bot here on lemmy late last season, and I figured, what better way than to make it myself. :)