API and GUI applications to get NCAA basketball stats from ESPN and NCAA.
This program downloads stats for games or players from ESPN.com, and gathers them into a CSV file.
Included is a Tkinter GUI program and the Python source code. You can use the command line version or develop it by following these steps:
-
Install Python: https://www.python.org/downloads/ Install at least version 3.10. You must check the options for tkinter as well as "update Path".
-
Create a virtual environment. Open a PowerShell window, navigate to this directory, and run
python3 -m venv venv
. -
Activate the virtual environment:
.\venv\Scripts\Activate.ps1
-
Install the required dependencies:
pip install -e .
-
Hack away. To run the command line version, simply run
python3 matchup.py
,python3 player.py
, orpython3 play_by_play.py
. -
To run the GUI version, run
python3 matchup_gui.py
,python3 player_gui.py
, orpython3 play_by_play_gui.py
. -
To build the EXE version, run these commands:
-
For the matchup scraper:
pyinstaller ncaa_basketball/matchup_gui.py --paths=./ncaa_basketball --hidden-import babel.numbers --onefile --windowed
-
For the player scraper:
pyinstaller ncaa_basketball/player_gui.py --paths=./ncaa_basketball --onefile --windowed
-
For the play by play scraper:
pyinstaller ncaa_basketball/play_by_play_gui.py --paths=./ncaa_basketball --hidden-import babel.numbers ---onefile --windowed