All Projects → sfrechette → nhlplaybyplay-node

sfrechette / nhlplaybyplay-node

Licence: MIT license
Fetch and Convert NHL Play by Play game data

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to nhlplaybyplay-node

nhl-twitter-bot
🚨 Hockey Game Bot is a Python application that sends important NHL events to social media platforms in (near) real time.
Stars: ✭ 18 (+38.46%)
Mutual labels:  hockey, nhl, nhl-api
nhl-my-team-ios-widget
"NHL-MyTeam" Scriptable iOS widget 🏒
Stars: ✭ 16 (+23.08%)
Mutual labels:  hockey, nhl
mysportsfeeds-api
Feature requests for the MySportsFeeds Sports Data API.
Stars: ✭ 44 (+238.46%)
Mutual labels:  hockey, nhl
mysportsfeeds-node
NodeJS wrapper for the MySportsFeeds Sports Data API
Stars: ✭ 62 (+376.92%)
Mutual labels:  nhl, nhl-api
LazyMan-iOS
A simple app that lets you stream every live and archived NHL and MLB game from any of your iOS devices.
Stars: ✭ 73 (+461.54%)
Mutual labels:  nhl
ionic-hockeyapp
Need HockeyApp in your Ionic application, add this package!
Stars: ✭ 19 (+46.15%)
Mutual labels:  hockey
mysportsfeeds-r
R wrapper functions for the MySportsFeeds Sports Data API
Stars: ✭ 27 (+107.69%)
Mutual labels:  nhl
sports.py
A simple Python package to gather live sports scores
Stars: ✭ 51 (+292.31%)
Mutual labels:  hockey
mysportsfeeds-python
Python wrapper for the MySportsFeeds Sports Data API
Stars: ✭ 77 (+492.31%)
Mutual labels:  nhl-api

Please use latest version

https://github.com/sfrechette/nhlplaybyplay2-node

alt tag

nhlplaybyplay-node

Fetch and Convert NHL Play by Play game data

Purpose

Application built using Node.js that provides the means for accessing, fetching NHL Schedule and Play by Play game data in JSON format and converting the output to CSV.

Hope your familiar with this…

2016-2017 NHL Season Schedule -> http://live.nhl.com/GameData/SeasonSchedule-20162017.json

Play by Play for game 2016020031 -> http://live.nhl.com/GameData/20162017/2016020031/PlayByPlay.json

Note: Schedule and Play by Play data only available from the 2011-2012 NHL Season and onward…

Installation

Install the dependencies with the following command:

npm install

Create a data directory:

mkdir data

Before using you will need to create a specific directory for each of the seasons you will be fetching data for.

i.e. To fetch data from the 2012-2013 NHL season you need to create the following folder 20122013 under the data directory.

Usage

Fetch Play by Play JSON
node fetch.js season [game]

To fetch all games for a specific season:

node fetch.js 20152016

To fetch a specific game from a specific season

node fetch.js 20162017 2016020001

Convert Play by Play JSON to CSV
node convert.js season [game]

To convert all games for a specific season:

node convert.js 20152016

To convert a specific game from a specific season

node convert.js 20162017 2016020001
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].