Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ability to auto-update scores via cron job #19

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

numericOverflow
Copy link

With these changes, I can now update scores automatically via a cron job without having to manually log in and update.

For example, my cronjob to update every 15 minutes on Monday/Thursday/Sunday after 12pm-12am

*/15 12-23 * * 1,4,7 curl --silent 'http://www.yourdomain.com/getHtmlScores.php?BATCH_SCORE_UPDATE_KEY=yourRandomDefinedValueHere' >> ~/cronlog.txt

Tweaks to support auto-update scored via curl/wget in cron script
Tweaks to support auto-update scored via curl/wget in cron script
Tweaks to support auto-update scored via curl/wget in cron script
Tweaks to support auto-update scored via curl/wget in cron script
@DonThorntonJr
Copy link

my solution to this "problem" was to run a cron script that pulled the scores from either www.nfl.com or sports.espn.go.com and upload them using SQL

@randyr505
Copy link

I decided to copy getHtmlScores.php to autoScoresUpdate.php and add this code to the copy. I made some minor code/var changes to suite my preferences.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants