Skip to main content
Version: 0.1.5

NHL — additional Python functions — Play-by-play processing

nhl_pbp_disk​

nhl_pbp_disk(game_id, path_to_json)

Read a saved ESPN NHL play-by-play payload from disk.

Parameters

ParameterTypeDefaultDescription
game_idThe ESPN game id; the file read is {game_id}.json.
path_to_jsonThe directory holding the saved payloads.

Returns

The payload exactly as saved (the raw ESPN summary JSON), ready for helper_nhl_pbp.