nba-go 正在参加 2021 年度 OSC 中国开源项目评选,请投票支持!
nba-go 在 2021 年度 OSC 中国开源项目评选 中已获得 {{ projectVoteCount }} 票,请投票支持!
2021 年度 OSC 中国开源项目评选 正在火热进行中,快来投票支持你喜欢的开源项目!
2021 年度 OSC 中国开源项目评选 >>> 中场回顾
nba-go 获得 2021 年度 OSC 中国开源项目评选「最佳人气项目」 !
授权协议 MIT License
开发语言 JavaScript
操作系统 跨平台
软件类型 开源软件
开源组织
地区 不详
投 递 者 首席测试
适用人群 未知
收录时间 2021-11-17

软件简介

The finest NBA CLI.

Watch NBA live play-by-play, game preview, box score and player information on your console.
Best CLI tool for those who are both NBA fans and Engineers.

All data comes from stats.nba.com APIs.

Install

In order to use nba-go, make sure that you have Node version 6.0.0 or higher.

$ npm install -g nba-go

Or in a Docker Container:

$ docker build -t nba-go:latest .
$ docker run -it nba-go:latest

By default, the docker container will run nba-go game -t, but you can override this command at run time.
For example:

$ docker run -it nba-go:latest nba-go player Curry -i

Or download the latest version pkg binaries in releases. It can be run on Linux, macOs and Windows.
For example:

./nba-go-macos game -h

Usage

nba-go provides two main commands.

  1. game or g
  2. player or p

Game

There are two things to do.

  1. Check schedule.
  2. Choose one game which you want to watch.

Depending on the status of the game you chose, a different result will be shown. There are three kinds of statuses that may be displayed.

Status Example Description
Pregame screen shot 2017-11-06 at 8 57 02 am It shows when the game starts.
Selecting this will show the comparison between two teams, including average points, field goal percents, average assists, etc.
Live screen shot 2017-11-06 at 8 56 50 am It shows live game clock.
Most powerful feature! Selecting this will show the live page which includes scoreboard, play-by-play and box score.
Final screen shot 2017-11-06 at 8 56 14 am Selecting this will show scoreboard, detailed box score, etc.

Check schedule

In order to show the schedule on some days, nba-go provides the command nba-go game with some options.

Options

-d <date> or --date <date>

Enter a specific date to check the schedule on that day.

$ nba-go game -d 2017/11/02

game -d gif

-y or --yesterday

Check yesterday's schedule.

$ nba-go game -y

game -y gif

-t or --today

Check today's schedule.

$ nba-go game -t

game -t gif

-T or --tomorrow

Check tomorrow's schedule.

$ nba-go game -T

game -T gif

-n or --networks

Display on schedule home team and away team television network information.

$ nba-go game -n

Pregame

⭐️⭐️
Check the detailed comparison data between two teams in the game.

pregame

Live

⭐️⭐️⭐️
Best feature! Realtime updated play-by-play, scoreboard and box score. Turn on fullscreen mode for better experience.
Btw, play-by-play is scrollable!.

live

Final

⭐️⭐️
Check two teams' detailed scoreboard and box score.

final

Filter

Filter results to quickly jump to the info you care about

Options

-f or --filter

Currently only supports filtering the results by team but more options on the way

nba-go game --filter team=Detroit

Player

Get player's basic information, regular season data and playoffs data.

Note. Must place player's name between nba-go player and options.

Options

-i or --info

Get player's basic information.

$ nba-go player Curry -i

player -i gif

-r or --regular

Get player's basic information.

$ nba-go player Curry -r

player -r gif

-p or --playoffs

Get player's basic information.

$ nba-go player Curry -p

player -p gif

-c or --compare

Get and compare the stats from multiple players. The better stat will be highlighted in green to make comparing easier. When listing the multiple names they must be in quotes and seperated by commas. Can be combined with the -i, -r, and -p flags.

$ nba-go player "Lebron James, Stephen Curry, James Harden" -c -i -r -p

player -c gif

Mixed them all

Get all data at the same time.

$ nba-go player Curry -i -r -p

player mixed gif

Development

  • It's simple to run nba-go on your local computer.
  • The following is step-by-step instruction.
$ git clone https://github.com/xxhomey19/nba-go.git
$ cd nba-go
$ yarn
$ NODE_ENV=development node bin/cli.js <command>

Related repo:

License

MIT © xxhomey19

展开阅读全文

代码

评论 (0)

加载中
更多评论
暂无内容
2020/04/29 20:30

NBA季后赛预测

第一轮 game team1 team2 Winner 0 Milwaukee Bucks Detroit Pistons Milwaukee Bucks 1 Toronto Raptors Orlando Magic Toronto Raptors 2 Philadelphia 76ers Brooklyn Nets Philadelphia 76ers 3 Boston Celtics Indiana Pacers Boston Celtics 4 Golden State Warriors Los Angeles Clippers Golden State Warriors 5 Denver Nuggets San Antonio Spurs Denver Nuggets 6 Portland Trail Blazers Oklahoma City Thunder Por...

0
0
2020/01/26 20:03

NBA里的黑科技

— — 2017年NBA选秀大会今天在纽约巴克莱中心拉开帷幕,富尔茨、鲍尔和塔图姆分别当选状元、榜眼和探花。 作为NBA骨灰粉的小编自然不能错过这一年一度的盛会,但是作为一个科技爱好者,除了要看到篮球赛场上弥漫的荷尔蒙、选秀大会上篮球经理们勾心斗角,我们还要看到支撑NBA这个联盟的科技力量,今天,小编就来给大家八一八NBA的黑科技。 魔法地板 如果你真的以为NBA的赛场就是一块球员们摸爬滚打的“地板”的话,那可就太小瞧...

0
0
发表了博客
2011/03/20 13:30

NBA 2K11 的修改器

分享我在3DM收集的一些 NBA 2K11 的修改器,不全,因为这个游戏才出来不久,以后修改器的功能肯定会越来越多,也越来越棒的。 欢迎大家回复添加新的修改器~! 下载地址:NBA2K11修改器

0
1
发表了博客
2019/01/08 10:31

NBA数据分析初探(上)

import numpy as np import pandas as pd import matplotlib.pyplot as plt import seaborn as sns #%matplotlib inline ##魔法命令了解一下, 内嵌画图 是IPython的内置magic函数,那么在Pycharm中是不会支持的。 #载入数据: data=pd.read_csv('D:/pycharm_ngs_programs/data_analysis/nba_2017_nba_players_with_salary.csv') print(data.head(5)) ## 描述统计 print(data.shape) print(data.describe())...

0
0
2020/08/29 21:02

NBA明星的社交数据分析

上方“AI公园”,关注公众号 作者:Holden Bridge 编译:ronghuaiyang NBA Twitter NBA的超级明星不仅是生活中的大人物,他们的追随者也不局限于在球场上。Twitter提供了一个专业的赛场,为垃圾话,个人政治观点提供了出口,同时增长了巨大的粉丝群体。我们想要深入的看一下: 探索一下工资,twitter追随者,以及其他NBA统计数据之间的关系 我们可不可以使用机器学习,给定一个球员,通过Twitter的追随者数量来预测工资 NBA的球...

0
0
发表于开发技能专区
2019/10/30 09:20

NBA球员投篮数据可视化

最近看了公众号「Crossin的编程教室」的一篇文章。 是有关于NBA球员出手数据的可视化案例,原文链接如下。 虎扑热帖|Python数据分析|NBA的球星们喜欢在哪个位置出手 个人感觉比较有趣,所以想着自己也来实现一波。 总体上来说差不多,可能就是美观点吧... / 01 / 篮球场 从网上找的篮球场尺寸图,如下。 其中单位为英尺,NBA的球场尺寸为94英尺长,50英尺宽。 下图是我用CAD绘制半场尺寸图,本次绘图就是按照下面这个尺寸来的。...

0
0
没有更多内容
加载失败,请刷新页面
点击加载更多
加载中
下一页
暂无内容
0 评论
0 收藏
分享
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部