BurntSushi / nflgame

An API to retrieve and read NFL Game Center JSON data. It can work with real-time data, which can be used for fantasy football.
http://pdoc.burntsushi.net/nflgame
The Unlicense
1.27k stars 413 forks source link

How can I get play by play Data real time? #192

Open Bhavesh45 opened 8 years ago

Bhavesh45 commented 8 years ago

I want to get Play by play feed realtime. Same as espn does while game is live.

What is delay between espn feed & nflgame feed?

Is this feed updating every second?

BurntSushi commented 8 years ago

I want to get Play by play feed realtime. Same as espn does while game is live.

I don't understand what you want. Could you please provide an example?

What is delay between espn feed & nflgame feed?

I don't know.

Is this feed updating every second?

No. Last time I checked, it was every 15 or 30 seconds.

Please consult the documentation: https://github.com/BurntSushi/nflgame/wiki/Getting-live-statistics-at-regular-intervals

etsweeney commented 8 years ago

Piggy-backing on this "issue".

I'm interested in a "live stream" of NFL PBP on Sunday afternoons, for every game, as it happens. It looks like your stuff here could produce that, but I'm not 100% sure.

From what I can tell, nflgame.live.run() can provide a list of every active game, as well has a GameDiff between the last update and the current update. In that GameDiff, would there be new plays, or is it just new aggregate statistics that have been updated??

I was looking thru documentation and message posts but I don't see any examples of how you'd execute and use run().

Have already been playing around with the rest of this API - pretty cool! Nicely done and thanks for any help you can provide!