PULL_LATEST_SCHEDULE config option?
See original GitHub issueA very common question throughout all nfl projects is, “why can’t i see the next seasons schedule??”.*
A way to eliminate this is to just have nflgame provide the latest schedule given a flag PULL_LATEST_SCHEDULE
. This would allow new users to query future seasons games without manually running update_sched.py --year 2018.
I suspect this was done to prevent accident abuse of the nfl.com json stream, so some planning/research is needed to make sure this wont set off any red flags for nfl.com.
Issue Analytics
- State:
- Created 5 years ago
- Comments:23 (12 by maintainers)
Top Results From Across the Web
How to import an object in typescript without tripping ...
Option 1 -- cast at the consumption site: ... import configuration = require('viewmodels/configure') class CalendarService implements ...
Read more >configure Options
Here is the output of configure -help as it was when the documentation was built. Note that some configure options will change the...
Read more >Weld configuration - JBoss.org
This configuration option specifies the number of threads used for preloading. If set to 0, preloading is disabled.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So, thanks for all the feedback and a great thread - and thanks a lot for the kind words regarding the scheduling code. I hope that we can rely on it and that the NFL doesn’t get any ideas. There are lots of stuff that you guys’ve written here and I’m not gonna qoute all and respond to it so here’s a sum up:
Regarding run mode/background mode
I’ll create a branch on my fork for this, experiment a bit. We’ll see what happens. When I’m looking at how I’m gonna use this, like my vision for it, a systemd-service that updates the data and just keeps running and running will suit my setup best. I think it’s worth to point out that I’m gonna run
nflgame
on a 24/7 remote server, not a local computer.Just to try and clarify what I mean (so answering your comment about live data @ochawkeye) is that I’d like the background process to update during live games (and update schedules, and players, all with “smart” rules on when to get stuff and when not to. Like, in may and june the service will just be idling, waiting for hall of fame week) and save this data (as json, in a database, somewhere). So like, if a game has started and I do this an hour into the game
>>> ìmport nflgame
nothing happens except the library being imported. No external calls - because these are already made, and are continously being made, by the background process, because the background process knows that a game is being played and now is the time to do it. Meaning, that you will have access to the latest live data at all times - just that this is being made by another process and you won’t see the output of it. But once you start querying, you will get the latest.
I’m not saying that it is better though, just that it’s gonna fit my purposes better 😄 Or, this is how my current application has been working (it uses the now deprecated score strip so that’s why my interest in
nflgame
is very high right now). So, I’ll do this on my fork anyway and we’ll se where to go from there, if anything will be synced back here.Getting future schedule logic
Right, I think that I might have been unclear here.
So I was probably unclear regarding “filling holes” in the schedule.
This is not what I meant, sorry for being unclear. I also changed my mind a bit to make it even more unclear. Summed up, I want this functionality, when update schedule is run:
schedule.json
for the current season.One last thing
Was going to suggest exactly that before 😃 Don’t know how it would be done but if we have good routines on keeping player, schedule and game data updated in the repo it’s of course a good thing if as many users as possible can pull these changes asap, essentially limiting a lot of traffic to NFL.com.
Boy oh boy it makes me happy to see this conversation!
Let me be clear that I would not want any changes to be made that would break things or slow them down. Fetching the whole season every import does seem silly. @mickeelm has the right idea. HOWEVER, i think we can possibly minimize requests sent further by;
The consequence would be slightly less accurate games in the future. Its very possible this is being to cautius w/ the nfl data stream, but its probably better safe than sorry.
This is another thing that relates to us insulating the project from low-level requests and makes it easier to use. Really nothing more. Its a seriously minor usability win, but these script kiddies can’t open the damn source code and read Andrew’s AMAZING comments.