wtf-plugin-nhl
v2.1.1
Published
nhl hockey data plugin for wtf_wikipedia
Downloads
13
Readme
wtf-nhl gets structured data for nhl hockey teams, supports a bunch of different variants of nhl game log variations, and tries to cleanup some complicated parts of wikipedia sometimes in the wild.
const plugin = require('wtf-plugin-nhl')
wtf.extend(plugin)
wtf.getSeason('Toronto Maple Leafs', 2018).then((data) => {
console.log(data)
/*{
games: [
{
game: 82,
date: 'April 7 2018',
opponent: 'Montreal Canadiens',
result: {
"us": 4,
"them": 2
},
overtime: false,
record: {
"wins": 49,
"losses": 26,
"ties": 7,
"games": 82
},
attendance: null,
points: 105,
win: true
},
...
],
roster: [
{
"name": "Ron Hainsey",
"games": 80,
"goals": 4,
"assists": 19,
"points": 23,
"plusMinus": 12
},
...
],
}*/
})
See also:
MIT