RunCheck is an application used for monitoring MLB scores.
RunCheck was inspired by and built to help organize a baseball office pool. The program is simple to use, it only requires a few setup steps and then you're done. RunCheck
can be used via the CLI or on a scheduel to help you gather baseball scores based on various filters
RunCheck requires a few steps to get started. You'll want to start in the directory you want the application to be stored
- Clone the
RunCheck
repo from GitHub
$ git clone https://github.com/mcnamarab/RunCheck.git
- Once you have the repo cloned, you'll want to install the dependencies
$ cd RunCheck
$ pip install -r requirements.txt
Now that you have RunCheck
installed, where you go next depends on how you want to use the application.
- If you want to use the program via a terminal head to the bottom of the instructions.
- If you want to set it up to run automatically, continue on below.
Get into the proper directory
$ cd auto
Modify and personalize the setup file. Simply fill in the requested fields. Make sure you save the file when you're done!
$ sudo nano setup.py
At this point, the program is all setup to run via the manage.py file but we will build a crontab to automate the process. For my example, the process will run every Monday at 8 AM, but you can set it however you like. All of the crotab instrcutions should be at the top of the crontab file. If not here is ome more info about crontab formatting.
$ cd ..
$ crontab -e
Add this line to the bottom of the crontab file. For my example, the process will run every Monday at 8 AM, but you can set it however you like. All of the crotab instrcutions should be at the top of the crontab file. If not here is ome more info about crontab formatting. Make sure the path to your manage.py file is correct Be sure to save before exiting
0 8 * * 1 /RunCheck/auto/manage.py
You're all set! Look for an email with your results at whatever time you specified. If your excited to try it out now, read the instructions below to try the program via the terminal.
Get into the proper directory
$ cd auto
Run the program with
$ python results.py
Then just answer the questions and get your results!
This project started a simple idea and I hope continue to develop this application. Down the road I hope to add a GUI or deploy the logic in a Flask app.
RunCheck is powered by Zach Panzarino's mlbgame
API. Much thanks to him for his awesome work
MIT License
Copyright (c) 2018 Brendan McNamara