Retrieve play-by-play data for a specific game. Because of the URL pattern used by Basketball Reference, you must provide the home_team (using the Team enum), year, month, and day.
Supports Python data structures, JSON, and CSV.
from basketball_reference_web_scraper import client
from basketball_reference_web_scraper.data import OutputType, Team
client.play_by_play(
home_team=Team.BOSTON_CELTICS,
year=2018, month=10, day=16,
output_type=OutputType.JSON,
output_file_path="./2018_10_06_BOS_PBP.json"
)