wyyz514 / nba-cli

Command-line utility for NBA using SportRadar API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

NBA-CLI

Command-line utility for keeping up to date with NBA scores and schedules using the SportRadar API

NBA CLI gif

Installation

Get a SportRadar API key for NBA

Sportradar Registration link

  • My Account -> Create New App -> Generate key for NBA trial

Add to your environment

vi ~/.bashrc
export NBA_SR_KEY=_YOUR_SPORTRADAR_KEY
:wq
source ~/.bashrc

Run npm install Then npm link

Enter nba -d [Some number of days; positive for future dates, negative for past dates]

  • Only tested in Linux terminal. Results may vary

Note

For negative inputs, ensure to escape the parameter. eg nba -d \ -2

About

Command-line utility for NBA using SportRadar API


Languages

Language:JavaScript 100.0%