jstuckey / Nice-Time-on-Ice

Nice Time on Ice - Mashup of NHL game links
31 stars 7 forks source link

Missing games after current day (this case Nov 16) #9

Closed jeremy04 closed 8 years ago

jeremy04 commented 9 years ago

Hey thanks for making this API!

I can't confirm that NHL didn't update their website after 6am when your cron runs. But when I look @ the schedule today: http://www.nhl.com/ice/schedulebyseason.htm I see way more games scheduled after Nov 16.

Is this a feature or a bug that it only has the current games scheduled for today?

jeremy04 commented 9 years ago

Checked API @ 8:20AM

[{"gameID":"2015020274","date":"Tue Nov 17, 2015","awayTeam":"New Jersey Devils","homeTeam":"Calgary Flames","gameType":"Regular"} etc, etc etc

Not a bug. What is stopping the scraper from retrieving games in the future? Could be a feature request.

jstuckey commented 9 years ago

Hey, fellow Jeremy. Thanks for reaching out!

Like you found, the scraper only retrieves games for the current day. The reason is that the websites I link to don't have data past the current date. I've just never had a need for future games.

May I ask why you're looking for future games? I'm not opposed to it, just curious about the motivation.

jeremy04 commented 9 years ago

I'm making an app that lets you snake draft "horses" from a live hockey game. You pick 2 horses from each team, and if your horse makes a goal, you have to give out a shot to one of the other players. http://horsetime.herokuapp.com/

Since your API is up-to-date on the day of the game, I don't need future games. I can definitely get away with using past dates while I test (where I found this issue ).