Package: puck-me
Puck MePuck Me is a python package for scraping NHL stats from the internet.Basic Usagefrom puck_me.players import Players

year = "2020"

skaters = Players.all_skaters(year)
goalies = Players.all_goalies(year)

# Print name of first three skaters
for skater in skaters[:3]:
    print(skater.name)

# Print name of first three goalies
for goalie in goalies[:3]:
    print(goalie.name)Output:>>> Justin Abdelkader
>>> Pontus Aberg
>>> Vitaly Abramov
>>> Jake Allen
>>> Frederik Andersen
>>> Craig AndersonSkaterNameskater.name->strGames Playedskater.games_played()->intparams:optional: year|example: "2009"Goalsskater.goals()->intparams:optional: year|example: "2009"Assistsskater.assists()->intparams:optional: year|example: "2009"Pointsskater.points()->intparams:optional: year|example: "2009"Plus Minusskater.plus_minus()->intparams:optional: year|example: "2009"Penalty Minutesskater.penalty_minutes()->intparams:optional: year|example: "2009"Even-Strength Goalsskater.goals_even_strength()->intparams:optional: year|example: "2009"Power-Play Goalsskater.goals_power_play()->intparams:optional: year|example: "2009"Short-Handed Goalsskater.goals_short_handed()->intparams:optional: year|example: "2009"Game Winning Goalsskater.goals_game_winning()->intparams:optional: year|example: "2009"Shotsskater.shots()->intparams:optional: year|example: "2009"Shooting Percentageskater.shooting_percentage()->floatparams:optional: year|example: "2009"Shiftsskater.shifts()->intparams:optional: year|example: "2009"Average Time On Iceskater.time_on_ice_per_game()->strparams:optional: year|example: "2009"Total Time On Iceskater.time_on_ice_total()->strparams:optional: year|example: "2009"Game Logskater.gamelog()->list[SkaterGame]params:optional: year|example: "2009"Basic Usage:from puck_me.players import Players

year = "2020"
skaters = Players.all_skaters(year)
crosby = list(filter(lambda s: s.name == "Sidney Crosby", skaters))[0]

for game in crosby.gamelog()[:5]:
    print(
        f"On {game.date} at arena '{game.arena}' {crosby.name} scored {game.points} points."
    )Output:>>> On 2019-10-03 at arena 'Home' Sidney Crosby scored 1 points.
>>> On 2019-10-05 at arena 'Home' Sidney Crosby scored 2 points.
>>> On 2019-10-08 at arena 'Home' Sidney Crosby scored 1 points.
>>> On 2019-10-10 at arena 'Home' Sidney Crosby scored 2 points.
>>> On 2019-10-12 at arena 'Away' Sidney Crosby scored 2 points.Playoff Game Logskater.gamelog_playoffs()->list[SkaterGame]params:optional: year|example: "2009"Regular Season Game Logskater.gamelog_regular_season()->list[SkaterGame]params:optional: year|example: "2009"Split Dataskater.splits()->list[SkaterSplit]params:required: split_type|see SplitTypeoptional: year|example: "2009"Basic Usage:from puck_me.players import Players
from puck_me.lib.split_types import SplitType

year = "2020"
skaters = Players.all_skaters(year)
crosby = list(filter(lambda s: s.name == "Sidney Crosby", skaters))[0]

for division_split in crosby.splits(SplitType.DIVISION):
    print(
        f"Against the {division_split.value} division {crosby.name} scored {division_split.goals} goals."
    )Output:>>> Against the Atlantic division Sidney Crosby scored 7 goals.
>>> Against the Metropolitan division Sidney Crosby scored 4 goals.
>>> Against the Central division Sidney Crosby scored 4 goals.
>>> Against the Pacific division Sidney Crosby scored 1 goals.SkaterGameDategame.date->strAgegame.age->strTeamgame.team->strArenagame.arena->strOpponentgame.opponent->strResultgame.result->strGame Wongame.is_win->boolPenalty Minutesgame.pim->intTime On Icegame.time_on_ice->strGoalsgame.goals->intPower Play Goalsgame.goals_pp->intEven Strength Goalsgame.goals_ev->intShort Handed Goalsgame.goals_sh->intGame Winning Goalsgame.goals_gw->intAssistsgame.assists->intEven Strength Assistsgame.assists_ev->intPower Play Assistsgame.assists_pp->intShort Handed Assistsgame.assists_sh->intPointsgame.points->intPlus Minusgame.plus_minus->intShotsgame.shots->intShot Percentagegame.shot_pct->floatShiftsgame.shifts->intHitsgame.hits->intBlocksgame.blocks->intFace-Off Winsgame.faceoff_wins->intFace-Off Lossesgame.faceoff_loss->intFace-Off Percentagegame.faceoff_pct->floatSkaterSplitValuesplit.value->strGames Playedsplit.games_played->intGoalssplit.goals->intAssistssplit.assists->intPointssplit.points->intPlus Minussplit.plus_minus->intPenalty Minutessplit.penalty_minutes->intEven Strength Goalssplit.goals_ev->intPower Play Goalssplit.goals_pp->intShort Handed Goalssplit.goals_sh->intGame Winning Goalssplit.goals_gw->intShotssplit.shots->intShooting Percentagesplit.shooting_pct->floatShiftssplit.shifts->intTotal Time On Icesplit.time_on_ice_total->strAverage Time On Icesplit.time_on_ice_average->strGoalieNamegoalie.name->strGames Playedgoalie.games_played()->intparams:optional: year|example: "2009"Winsgoalie.wins()->intparams:optional: year|example: "2009"Lossesgoalie.losses()->intparams:optional: year|example: "2009"Tie Lossesgoalie.tie_losses()->intparams:optional: year|example: "2009"Goals Againstgoalie.goals_against()->intparams:optional: year|example: "2009"Shots Facedgoalie.shots_faced()->intparams:optional: year|example: "2009"Savesgoalie.save_percent()->intparams:optional: year|example: "2009"Goals Against Averagegoalie.goals_against_avg()->intparams:optional: year|example: "2009"Shutoutsgoalie.shutouts()->intparams:optional: year|example: "2009"Penalty Minutesgoalie.penalty_mins()->intparams:optional: year|example: "2009"Time On Icegoalie.time_on_ice()->intparams:optional: year|example: "2009"Even Strength Goals Againstgoalie.goals_against_ev()->intparams:optional: year|example: "2009"Power Play Goals Againstgoalie.goals_against_pp()->intparams:optional: year|example: "2009"Short Handed Goals Againstgoalie.goals_against_sh()->intparams:optional: year|example: "2009"Game Loggoalie.gamelog()->list[GoalieGame]params:optional: year|example: "2009"Basic Usage:from puck_me.players import Players

year = "2020"
goalies = Players.all_goalies(year)
lundqvist = list(filter(lambda g: g.name == "Henrik Lundqvist", goalies))[0]

for game in lundqvist.gamelog()[:5]:
    print(
        f"On {game.date} at arena '{game.arena}' {lundqvist.name} made {game.saves} saves."
    )Output:>>> On 2019-10-03 at arena 'Home' Henrik Lundqvist made 43 saves.
>>> On 2019-10-12 at arena 'Home' Henrik Lundqvist made 23 saves.
>>> On 2019-10-18 at arena 'Away' Henrik Lundqvist made 29 saves.
>>> On 2019-10-20 at arena 'Home' Henrik Lundqvist made 40 saves.
>>> On 2019-10-24 at arena 'Home' Henrik Lundqvist made 31 saves.Playoff Game Loggoalie.gamelog_playoffs()->list[GoalieGame]params:optional: year|example: "2009"Regular Season Game Loggoalie.gamelog_regular_season()->list[GoalieGame]params:optional: year|example: "2009"Split Datagoalie.splits()->list[GoalieSplit]params:required: split_type|see SplitTypeoptional: year|example: "2009"Basic Usage:from puck_me.players import Players
from puck_me.lib.split_types import SplitType

year = "2020"
goalies = Players.all_goalies(year)
lundqvist = list(filter(lambda g: g.name == "Henrik Lundqvist", goalies))[0]

for division_split in lundqvist.splits(SplitType.DIVISION):
    print(
        f"Against the {division_split.value} division {crosby.name} scored {division_split.goals} goals."
    )Output:>>> Against the Atlantic division Henrik Lundqvist made 256 saves.
>>> Against the Metropolitan division Henrik Lundqvist made 235 saves.
>>> Against the Central division Henrik Lundqvist made 105 saves.
>>> Against the Pacific division Henrik Lundqvist made 203 saves.GoalieGameDategame.date->strAgegame.age->strTeamgame.team->strArenagame.arena->strOpponentgame.opponent->strResultgame.result->strGame Wongame.is_win->boolPenalty Minutesgame.pim->intTime On Icegame.time_on_ice->strDecisiongame.decision->strGoals Againstgame.goals_against->intShots Againstgame.shots_against->intSavesgame.saves->intSave Pctgame.save_pct->intShutoutsgame.shutouts->intGoalieSplitValuesplit.value->strGames Playedsplit.games_played->intWinssplit.wins->intLossessplit.losses->intTie Lossessplit.tie_losses->intGoals Againstsplit.goals_against->intShots Facedsplit.shots_faced->intSavessplit.saves->intSave Percentsplit.save_percent->floatAverage Goals Againstsplit.goals_against_avg->floatShutoutssplit.shutouts->intPenalty Minutessplit.penalty_mins->intTime On Icesplit.time_on_ice->strEven Strength Goals Againstsplit.goals_against_ev->intPower Play Goals Againstsplit.goals_against_pp->intShort Handed Goals Againstsplit.goals_against_sh->intSplitTypeSplit type is an enum.ValuesSplitType.SEASONSplitType.ARENASplitType.ALL_STAR(for splitting before and after All-Star break)SplitType.RESULTSplitType.MONTHSplitType.CONFERENCESplitType.DIVISIONSplitType.OPPONENT