31

用Python命令观看 NBA 比分直播,球员数据

 4 years ago
source link: https://developer.51cto.com/art/201911/606539.htm
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

用Python命令观看 NBA 比分直播,球员数据

用Python命令观看 NBA 比分直播,球员数据

NBAsh 是一款基于 Python3 的命令行工具,它用来观看 NBA 比分直播,球员数据,数据来自虎扑。

作者:ITBang来源:今日头条|2019-11-22 23:46

NBAsh 是一款基于 Python3 的命令行工具,它用来观看 NBA 比分直播,球员数据,数据来自虎扑。

用Python命令观看 NBA 比分直播,球员数据

这个类似于摸鱼工具,尤其对于整天对着命令行的 NBA 球迷,简直太欢喜了。

命令行工具对于熟手来说操作简单,对于生手来说还是有些难度。

安装方式如下:

首先你需要有 Python3 与 pip3 环境,对于这两个怎么安装,就不说了,有需求的朋友可以自行搜索教程。

然后,简单了:

  1. pip3 install asciimatics requests BeautifulSoup4 fake-useragent 
  2. git clone https://github.com/rogerzhu/NBAsh.git 
  3. cd NBAsh 
  4. python3 ./NBash.py 

然后就好了。

显示内容会几秒钟刷新一次:

用Python命令观看 NBA 比分直播,球员数据

输入场次字母,回车,还可以查看球员数据:

用Python命令观看 NBA 比分直播,球员数据

NBAsh 在 GitHub 发布,想摸鱼的朋友可以去试试。

源代码地址:https://github.com/rogerzhu/NBAsh

【编辑推荐】

【责任编辑:未丽燕 TEL:(010)68476606】
点赞 0

关注“51CTO技术栈”微信公众号获取更多精彩内容

大家都在看猜你喜欢

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK