Skip to main content

Package that gathers information on given MLB games

Project description

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)

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

mlbrecaps-0.0.1.tar.gz (12.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

mlbrecaps-0.0.1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

File details

Details for the file mlbrecaps-0.0.1.tar.gz.

File metadata

  • Download URL: mlbrecaps-0.0.1.tar.gz
  • Upload date:
  • Size: 12.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for mlbrecaps-0.0.1.tar.gz
Algorithm Hash digest
SHA256 4d5c81ef32a93c82171d1c13fd076970f24faeee1bd9a66fcae18fdde4594551
MD5 1b6b5a61cac0b7c1cd2cb7f3d3adfee2
BLAKE2b-256 f3f675488d3ad8e991776daa9f797ac1ae1145266f63b0fdcd573c0694024d33

See more details on using hashes here.

File details

Details for the file mlbrecaps-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: mlbrecaps-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 15.8 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.7

File hashes

Hashes for mlbrecaps-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 78dc4e91460437c5879e5c6a04ddcfa5d504797d8f81a7257d72761a11df8d4d
MD5 ac9c77bb14ec4ac288da988e9f2fadd6
BLAKE2b-256 1ced699372e475a1826a5df76a05b7e7e16f9bf808d11b147e1620bb91753421

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page