26
submitted 10 months ago by dandroid@dandroid.app to c/hockey@lemmy.ca

The NHL dramatically changed their API, and I am going to need to rewrite a big portion of the bot. I don't really have the time to dedicate to it right now, so I'm not sure when it will be back up.

top 8 comments
sorted by: hot top controversial new old
[-] SatouKazuma@lemmy.world 7 points 10 months ago

Did it get crosschecked by Perron?

[-] headie_sage@fanaticus.social 7 points 10 months ago

That sucks. Is your game bot open source? Is there anything I can do to help?

[-] SatouKazuma@lemmy.world 3 points 10 months ago

He has it up on GitHub I believe. I wish I had the link, but I've lost it...

[-] dandroid@dandroid.app 1 points 10 months ago

It is open source!

The API documentation is here.. There's at least one API call that is not listed there to have a 1 to 1 replacement for everything currently in the bot. It's the text description of the goal. So like, "Tyler Motte (1) backhand shot, assist(s): Darren Raddysh (9), Michael Eyssimont (6)". The reddit bot still has this data, and it is still working, so it must be somewhere. It's just not in the documentation (or I just can't find it).

[-] Alchemy@lemmy.world 4 points 10 months ago

Sad to hear. Do you think they changed it maliciously to disrupt things like bots?

[-] SatouKazuma@lemmy.world 4 points 10 months ago

Fellow dev here (though I can't take credit for anything on the bot), but I'd say...maybe. Unfortunately I'm not all-knowing, nor was I in the room when any of this was discussed, but I wonder if it had to do with the addition of more advanced stats. My understanding is that the NHL is actually trying to make stats more publicly accessible, so I'd say "no" off the cuff, but your guess is as good as anyone's (i.e., I don't think anyone can say one way or the other with any certainty whatsoever).

[-] dandroid@dandroid.app 3 points 10 months ago

I don't think so. It's completely free and open. If they really didn't want bots, they could make it private. Or if they wanted to make money off of it, they could make it paid. But they aren't doing anything like that.

What I have noticed is that instead of having one API call that returns a massive amount of data, they have a bunch of API calls that return smaller amounts of data. I think this is to reduce load on their servers. Philosophically, I actually think this is a good thing for them to do. It just kinda screws people who consume their API.

[-] Lauchs@lemmy.world 1 points 10 months ago

Thanks for all your work on the bot regardless!

this post was submitted on 14 Dec 2023
26 points (96.4% liked)

Hockey

3 readers
46 users here now

Rules

List of Team-Specific Communities:

Metropolitan Division

Atlantic Division

Central Division

Pacific Division

founded 3 years ago
MODERATORS