Thanks to visit codestin.com
Credit goes to github.com

Skip to content

hdanish/NHL

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

Description

I initially decided to write a script in order to automate building a recap of a given day's NHL scores and highlights to post on Reddit. Having successfully done that, my next step (TBC) would be to write a bot to automate this posting. Subsequently, I have considering writing a script to scrape more data and store it in a database for future use. Possible ideas include attempting to cluster players based on their stats and salaries (cap hit).

Sample Output

The following is a sample output that is generated using my script on NHL games for March 4th, 2017 (see notebook). The headings have been slightly modified for this page.


##NEW JERSEY DEVILS @ BOSTON BRUINS

Final score: 2-3

Period Time Team Point getters
2 07:06 BOS (PPG) Torey Krug (6) Slap Shot, assists: David Pastrnak (28), Patrice Bergeron (25)
2 11:48 NJD Devante Smith-Pelly (4) Backhand, assists: Steven Santini (5), Kyle Palmieri (22)
2 18:25 BOS Brandon Carlo (6) Backhand, assists: Patrice Bergeron (26), David Backes (18)
3 05:51 NJD Kyle Palmieri (20) Snap Shot, assists: Taylor Hall (28)
3 08:18 BOS Ryan Spooner (11) Wrist Shot, assists: Drew Stafford (10), Frank Vatrano (7)

##TAMPA BAY LIGHTNING @ BUFFALO SABRES

Final score: 2-1

Period Time Team Point getters
1 19:48 BUF (PPG) Ryan O'Reilly (15) Slap Shot, assists: Rasmus Ristolainen (35), Jack Eichel (26)
2 02:37 TBL Tyler Johnson (19) Tip-In, assists: Victor Hedman (43), Nikita Kucherov (35)

##COLUMBUS BLUE JACKETS @ OTTAWA SENATORS

Final score: 2-3

Period Time Team Point getters
1 02:17 CBJ Brandon Saad (20) Wrist Shot, assists: Zach Werenski (29), Seth Jones (25)
1 13:25 OTT Viktor Stalberg (10) Wrist Shot, assists: Chris Kelly (6), Tommy Wingels (4)
2 08:59 OTT Erik Karlsson (11) Wrist Shot, assists: Mark Stone (26), Marc Methot (10)
3 16:58 OTT (SHG) Zack Smith (16) Wrist Shot, assists: Jean-Gabriel Pageau (16)
3 17:38 CBJ (PPG) Sam Gagner (15) Snap Shot, assists: Zach Werenski (30), Cam Atkinson (25)

##DALLAS STARS @ FLORIDA PANTHERS

Final score: 2-1

Period Time Team Point getters
1 11:01 DAL Jamie Benn (24) Wrist Shot, assists: Tyler Seguin (42), Jason Spezza (27)
1 16:20 FLA (PPG) Jonathan Huberdeau (5) Snap Shot, assists: Jonathan Marchessault (19), Aleksander Barkov (23)
3 18:53 DAL John Klingberg (11) Slap Shot, assists: Tyler Seguin (43), Jamie Benn (38)

##MONTREAL CANADIENS @ NY RANGERS RANGERS

Final score: 4-1

Period Time Team Point getters
1 12:51 MTL Shea Weber (15) Deflected, assists: Max Pacioretty (26), Steve Ott (4)
2 08:48 MTL Artturi Lehkonen (12) Snap Shot, assists: Phillip Danault (21), Max Pacioretty (27)
2 18:37 MTL Andrew Shaw (10) Wrap-around, assists: Alex Galchenyuk (21), Andrei Markov (24)
3 01:44 NYR Chris Kreider (24) Wrist Shot, assists: Derek Stepan (32), Mats Zuccarello (33)
3 06:58 MTL Jordie Benn (3) Slap Shot, assists: Nathan Beaulieu (21), Alex Galchenyuk (22)

##COLORADO AVALANCHE @ WINNIPEG JETS

Final score: 1-6

Period Time Team Point getters
1 04:22 WPG Patrik Laine (32) Slap Shot, assists: Mathieu Perreault (21), Dustin Byfuglien (34)
1 09:47 WPG (PPG) Blake Wheeler (20) Wrist Shot, assists: Bryan Little (16), Dustin Byfuglien (35)
1 10:02 WPG Mark Scheifele (27) Slap Shot, assists: Patrik Laine (26), Nikolaj Ehlers (30)
2 07:03 WPG Ben Chiarot (1) Backhand, assists: Nikolaj Ehlers (31), Blake Wheeler (35)
2 09:05 WPG Nikolaj Ehlers (21) Tip-In, assists: Blake Wheeler (36)
3 13:54 WPG Jacob Trouba (6) Slap Shot, assists: none
3 19:44 COL Gabriel Landeskog (14) Deflected, assists: Cody Goloubef (4), Rene Bourque (5)

##PHILADELPHIA FLYERS @ WASHINGTON CAPITALS

Final score: 1-2

Period Time Team Point getters
3 01:19 PHI Sean Couturier (10) Tip-In, assists: Matt Read (7), Nick Cousins (9)
3 02:40 WSH Dmitry Orlov (5) Slap Shot, assists: Matt Niskanen (31)
4 03:25 WSH (PPG) Nicklas Backstrom (20) Wrist Shot, assists: Kevin Shattenkirk (32), Alex Ovechkin (28)

##CHICAGO BLACKHAWKS @ NASHVILLE PREDATORS

Final score: 5-3

Period Time Team Point getters
1 16:23 CHI (PPG) Patrick Kane (28) Snap Shot, assists: Brent Seabrook (29), Richard Panik (18)
2 11:03 CHI Jordin Tootoo (1) Wrist Shot, assists: Brent Seabrook (30), Duncan Keith (40)
2 12:20 NSH Viktor Arvidsson (22) Wrist Shot, assists: Ryan Johansen (40), P.K. Subban (24)
2 19:03 CHI (PPG) Jonathan Toews (17) Wrist Shot, assists: none
2 19:17 NSH Calle Jarnkrok (13) Wrist Shot, assists: none
3 04:13 NSH Viktor Arvidsson (23) Wrist Shot, assists: Ryan Johansen (41), Filip Forsberg (24)
3 18:55 CHI Brian Campbell (5) Wrist Shot, assists: Jonathan Toews (31), Richard Panik (19)
3 19:21 CHI Patrick Kane (29) Snap Shot, assists: Artemi Panarin (38)

##DETROIT RED WINGS @ EDMONTON OILERS

Final score: 3-4

Period Time Team Point getters
1 01:41 EDM Connor McDavid (22) Backhand, assists: Adam Larsson (13)
1 15:04 DET Anthony Mantha (14) Wrist Shot, assists: Henrik Zetterberg (36)
1 19:38 EDM Zack Kassian (6) Wrist Shot, assists: Adam Larsson (14), David Desharnais (7)
3 06:58 EDM Jordan Eberle (14) Backhand, assists: Milan Lucic (22)
3 10:26 DET Darren Helm (8) Wrist Shot, assists: Dylan Larkin (8)
3 14:02 EDM Patrick Maroon (21) Wrist Shot, assists: Leon Draisaitl (32), Connor McDavid (52)
3 19:25 DET Dylan Larkin (13) Wrist Shot, assists: Justin Abdelkader (12), Henrik Zetterberg (37)

##VANCOUVER CANUCKS @ LOS ANGELES KINGS

Final score: 4-3

Period Time Team Point getters
1 11:37 VAN Sven Baertschi (14) Wrist Shot, assists: Loui Eriksson (12), Bo Horvat (23)
1 18:28 VAN Henrik Sedin (13) Wrist Shot, assists: Bo Horvat (24), Christopher Tanev (6)
2 06:38 VAN Sven Baertschi (15) Wrist Shot, assists: Bo Horvat (25), Loui Eriksson (13)
2 12:43 VAN Nikolay Goldobin (1) Wrist Shot, assists: Ben Hutton (13), Brandon Sutter (13)
2 16:40 LAK (PPG) Anze Kopitar (8) Snap Shot, assists: Alec Martinez (24), Drew Doughty (28)
3 12:03 LAK (PPG) Trevor Lewis (9) Wrist Shot, assists: Adrian Kempe (3), Paul LaDue (3)
3 18:39 LAK (SHG) Alec Martinez (8) Wrist Shot, assists: Adrian Kempe (4), Derek Forbort (13)

About

NHL and hockey related scripts and code

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published