Pulls live stats from the web to predict outcomes of the upcoming schedule.
- Python 3+ (3.7.3 tested)
- Pandas (
pip install pandas
)
- Download/clone project
- cd into the NFL-Predictor directory
- Run
python nfl_predictor.py
- Results will be printed to the console if SAVE_TO_TXT constant is false
- Open constants.py in a text editor
- Change SAVE_TO_TXT to
True
- Edit FILENAME to change the .txt filename
- Save constants.py
- Open constants.py in a text editor
- Change SCORE_DECIMALS variable to the amount of decimals you want for the scores and combined totals
- Change SPREAD_DECIMALS variable to the amount of decimals you want for the spread
- Save constants.py
- Open constants.py in a text editor
- Change AVG_PTS_WEIGHT to a float between 1.0 and 0.0
- You can optional change the AVG_PTS_ALLOWED_WEIGHT as well, however it is recommended to leave it so that the 2 equal 100%
- Save constants.py