Skip to content

Karsten-Larson/MLB-Recaps

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

mlbrecaps

A Python package for downloading Major League Baseball game highlights based on team and date.

Installation

pip install mlbrecaps

Usage The mlbrecaps package provides a simple function highlight_generator to download game highlights for a specified Major League Baseball team and date.

Basic Python Example:

from mlbrecaps import scripts, Team, Date

# Download highlights for the Minnesota Twins game on October 3rd, 2023

highlights = scripts.get_highlights(Team("MIN"), Date(10, 3, 2023))

# Handle all the highlights to a folder
highlights.download("/path/to/folder/", verbose=True)

Example in Google Colab

Link to Google Colab

Run directly from the terminal

If you have the mlbrecaps package installed, you can use the following command to download highlights directly from the terminal:

python -m mlbrecaps

This command will prompt you to enter the team three-letter abbreviation, game date, and path to a videos download directory for the desired highlights.

Examples

More examples are avaliable on Github.

Development

This package is under active development. Feel free to contribute by submitting pull requests!

Contributing

All contributions are welcomed to improve the mlbrecaps package. To contribute simply submit a pull request.

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages