diff --git a/pyball/__init__.py b/pyball/__init__.py index e1769af..6bf3d29 100644 --- a/pyball/__init__.py +++ b/pyball/__init__.py @@ -4,6 +4,7 @@ import subprocess + def post_install(): """ Run the playwright install command. diff --git a/pyball/baseball_reference_team.py b/pyball/baseball_reference_team.py index 159eabf..68d7b39 100644 --- a/pyball/baseball_reference_team.py +++ b/pyball/baseball_reference_team.py @@ -30,7 +30,7 @@ class BaseballReferenceTeamStatsScraper: pitching_stats(self) -> Optional[pd.DataFrame] Returns the pitching stats for the team as a pandas DataFrame. """ - + TABLE_IDS = { 'batting': 'team_batting', 'pitching': 'team_pitching' diff --git a/pyball/utils.py b/pyball/utils.py index 299812f..fec574f 100644 --- a/pyball/utils.py +++ b/pyball/utils.py @@ -145,6 +145,7 @@ def is_bbref_team_url(url): """ return "teams" in url and "baseball-reference" in url + def make_savant_player_url(last, first, key_mlbam): """ Function to generate baseball savant url from last name, first name, and mlbam key