Library for grabbing baseball statistics in Python, designed for use in Jupyter Notebooks.
Another python library for getting baseball statistics already exists (pybaseball), however, pyball just provides barebones functions for retriving stats from Baseball-Reference, and Baseball Savant.
git clone https://github.com/gdifiore/pyball.git
cd pyball
python -m venv .venv
(activate .venv)
poetry install
Read the sample jupyter notebook.
Leave any comments or suggestions in an issue or directly make make a pull request adding code.
pyball
is licensed under the MIT license
- Would like to make a base class of shared functions (_get_soup(), _find_table(), ...) but I kinda hate how python classes work.