Re:Show HN: Hooks – Get Custom Notifications for Everything ...
by weego on Wednesday March 04, 2015 @03:22PM
(#9147055)
Considering the wide range of possible triggers that don't have any kind of formal api I expect the answer is by scraping the right sites.
[ Parent
| on HN ]
Re:Show HN: Hooks – Get Custom Notifications for Everything ...
by bmelton on Wednesday March 04, 2015 @06:18PM
(#9148120)
At least the NBA and NFL write out RSS feeds of games as they're playing with the scores and plays as they occur, to varying degrees of specificity.
They're kind of a bear to parse, but it's definitely doable without scraping, in some cases.
Re:Show HN: Hooks – Get Custom Notifications for Everything ...
by krsgoss on Wednesday March 04, 2015 @07:33PM
(#9148501)
Hi, do you have a link to these feeds by any chance? Was hoping for something like this for a POC. Thanks!
Re:Show HN: Hooks – Get Custom Notifications for Everything ...
by bmelton on Wednesday March 04, 2015 @08:02PM
(#9148614)
The NFL game feed is a combination of a couple of feeds. There's
http://www.nfl.com/liveupdate/scorestrip -- which will show you the events and IDs that are currently going active. Right now, in the off-season, it will undoubtedly be blank. You can then take those values and plug them into this one:
http://www.nfl.com/liveupdate/game-center/%s/%s_gtd.json % (year, game_id)
For something to illustrate how they work together, you can check out this repository: https://github.com/BurntSushi/nflgame
I don't remember the one for the NBA, as I've never used it, but I saw an article on reddit a few weeks ago about how to get the data from the NBA using their RSS feed, so I have a good faith belief that it exists.
Re:Show HN: Hooks – Get Custom Notifications for Everything ...
by krsgoss on Thursday March 05, 2015 @10:42AM
(#9151337)
Thanks for sharing this! The only thing I had found was stuff like SportsXML, etc. but it took me weeks to just get a demo data dump for a single game and the pricing was way too much to bite off.