Jump to content

Recommended Posts

Posted (edited)

So, as some of you know, and 1-2 of you are upset about, WAR On Ice is shutting down; health issues with the founder I believe. But, don't worry, because here's the replacement website, started this year. The only thing that sucks about it is it doesn't have WAR's classic visual graphs for skater comparisons (or none that I've found yet), but they do have some new and interesting stats, like Expected Goals, Line Combinations Stats, and others. So, feel free to play around with it

 

http://www.corsica.hockey/

 

BTW, our best line of the year, was Girgensons - Eichel - Reinhart

 

http://www.corsica.hockey/combos/

 

 

 

And there are visual WOWY charts!


More charts. xGF%. For fun, look at us compared to Washington

 

http://www.corsica.hockey/teams/

 

Found the PvP charts. And there more graphs than WAR had

 

http://www.corsica.hockey/skaters/


And here's the 'Frequently Asked Questions' section. Funny stuff in there, the guy has a good sense of humor. Definitely helped me understand his charts too.

 

http://www.corsica.hockey/blog/2016/03/15/some-frequently-asked-questions/


 


Systems matter. A good player on Darryl Sutter’s Kings team will look a hell of a lot better than a good player on Dan Bylsma’s controlled-entry-averse Sabres. Teammates matter. Shackling Ryan McDonagh, who is good, to Dan Girardi, who is bad, makes Ryan McDonagh look worse. Goalies matter. Sorry about your on-ice save percentage, probably more defensemen than we can count.

Edited by WildCard
Posted

WTF is with the founders of great hockey sites having serious health problems?

I'm not sure, but I really hope the trend doesn't continue, because it's something I'd like to do.

Posted

Turns out WAR's founders aren't ill, they were hired by the Minnesota Wild

 

Well that's good news.  Hopefully they can sell the site to someone competent.

Posted

Well that's good news.  Hopefully they can sell the site to someone competent.

I'd be willing to bet their stuff is proprietary and buying it came long with the hires by the Wild. 

Posted

Well that's good news.  Hopefully they can sell the site to someone competent.

It's all open source code on github. I plan on playing around with it this summer and seeing if I can't make my own site. Going to email the Corsica guy and find out how he actually gets all of his data though

Posted

I spent a little time this afternoon looking at options.  Two options are pre-made tools, one written in R, another written in Python.  I will do a general overview of how I do it.

 

To start, find the Sabres schedule on NHL.com

http://sabres.nhl.com/club/schedule.htm

using this page we find all 82 play-by-play htmlreports.

To do this, I use, Selector Gadget.  NHL.com hides the play-by-play htmlreports, but you can find each one because they are similar to the recap URL on the schedule page.  So using Ruby, I loop through the schedule page scraping the recap link, then using that information to open the htmlreport.  I save the play-by-play to my computer so I'm not needing to access nhl.com each time I want to look at the htmlreport.

 

Once on my computer, I go through the htmlreport gathering the information I'm interested in, and that again is done in Ruby.  This was the start of a game against Ottawa. Notice that the Sabres start the game with 63-90-26-6-46 and 40.  My software goes down the play-by-play converting this format into the format I want to use.

 

1 1   0:00
20:00 PSTR Period Start- Local time: 7:10 EDT 7 C   68 C   61 R   3 D   65 D   41 G 63 C   90 C   26 L   6 D   46 D   40 G 2 1 EV 0:00
20:00 FAC OTT won Neu. Zone - OTT #7 TURRIS vs BUF #90 O'REILLY 7 C   68 C   61 R   3 D   65 D   41 G 63 C   90 C   26 L   6 D   46 D   40 G 3 1 EV 0:30
19:30 GOAL OTT #7 TURRIS(1), Wrist, Off. Zone, 35 ft.
Assists: #68 HOFFMAN(1); #61 STONE(1) 7 C   68 C   61 R   3 D   65 D   41 G 63 C   90 C   26 L   6 D   46 D   40 G 4 1 EV 0:30
19:30 FAC OTT won Neu. Zone - OTT #93 ZIBANEJAD vs BUF #15 EICHEL 27 C   93 C   6 R   2 D   74 D   41 G 15 C   23 C   9 L   3 D   4 D   40 G 5 1  

 

And that it.  I use JSON files to store the data, then D3, a javascript framework, to make the chart.

Posted

Is this possible using Java? Or, in a similar route, how similar is Ruby to Java? IIRC Ruby is just an OO language like Java, except everything is objects. Literally everything 

Posted

I would skip actually learning Ruby, and adapt my code to fit your needs.  Ruby isn't anything to be worried about, you can look at it and understand it, and you would just be using it as a scripting language, not like you're trying to learn Rails or anything like that.

Posted

I would skip actually learning Ruby, and adapt my code to fit your needs.  Ruby isn't anything to be worried about, you can look at it and understand it, and you would just be using it as a scripting language, not like you're trying to learn Rails or anything like that.

If you're willing to share your code so I can look at it, that would honestly just be awesome. I'm assuming the play by plays have shots as well, to compute Corsi and what not?

 

I've never used Selector Gadget, but that really seems like a small roadblock at worst. 

Posted

WTF is with the founders of great hockey sites having serious health problems?

 

Dinosaurs, man. There's a ring headed by Milbury and NHL HQ.

 

I hope you guys aren't in an airplane waiting to take off

 

haha, nice.

 

On a side note, learning a little Python wouldn't be a bad idea, WC. It's a lot quicker to get small stuff done than Java. It's also OO, so you shouldn't have too much trouble picking it up. I started writing a tool for work and within a day or two I felt like I had a decent handle on the basics (and I haven't coded much of anything in at least a decade).

This topic is OLD. A NEW topic should be started unless there is a VERY SPECIFIC REASON to revive this one.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...