Coder Social home page Coder Social logo

hupulive's Introduction

虎扑篮球直播命令行版

作为一个加入虎扑快 700 天的 JRs,一直都是虎扑的铁粉。喜欢逛绿化街,喔不对,是步行街;喜欢看评论,搬好小板凳,欣赏段子手们的表演,前排偶尔还有出售瓜子和爆米花;喜欢虎扑的直播风格,幽默有趣,还能时不时蹦出金句,比如詹姆斯一个后撤步,后撤距离达到一个郭敬明。主播们都是被虎扑耽误了的作家,且节间中场还经常有福利图,需要定时补营养。毕竟随着身体一阵抽搐,整个帖子也就变得索然无味了。

所以,我有了一个大胆的想法

平时也喜欢在命令行下折腾东西,虽然没钱用 Mac 不过 Windows/Linux 下的也不错阿。所以就想来个虎扑文字直播命令行版的,不过没有找到手机直播的数据,就只能将就找网页版的文字直播。有点可惜,因为发现网页版的直播语言太正式了,一点都不像我认识的虎扑,说好的我的三分剑,是地狱的火焰呢。

时不我待,来一个网易云的电音歌单配上一杯速溶咖啡
时间悄悄地在流逝,然后项目就写好了

测试环境

  • Windows 10
  • Python 3.5.2

如何安装

  1. git clone https://github.com/chenjiandongx/HupuLive.git
  2. cd HupuLive
  3. pip install -r requirements.txt
  4. python setup.py install

使用指南

hupu -hhupu --help 能够查看如何使用,明细各项参数功能

使用指南

获取比赛直播场次

hupu -lhupu --list 查询当天比赛的直播的场次,结果返回比赛场次,包括对阵双方以及场次的序号

获取比赛直播场次

选取比赛开始直播

hupu -whupu --watch 根据获得的场次序号来选择具体的比赛,比如这里的 0

选取比赛开始直播

对齐看起来很舒服有没有,强迫症的福音有没有!!!
如果不想看了可以按 Ctrl-C 来中断直播,或者直接关闭终端就行了

获取比赛统计数据

hupu -dhupu --data 根据获取的场次序号来选择具体比赛的统计数据

获取比赛统计数据
数据也是对齐的看起来也是很爽的有没有!!!

获取比赛赛后新闻

hupu -nhupu --news 同样根据获取的场次序号来选择具体比赛的赛后新闻

获取比赛赛后新闻

获取近期比赛赛程

hupu -shupu --schedule 查看近七天的比赛赛程

获取近期比赛赛程

如何卸载

使用 pip uninstall HupuLive 卸载

hupulive's People

Contributors

chenjiandongx avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

hupulive's Issues

跑不起来

C:\Users\Alby>hupu -h
Traceback (most recent call last):
File "C:\Python36\Scripts\hupu-script.py", line 11, in
load_entry_point('HupuLive==1.3', 'console_scripts', 'hupu')()
File "C:\Python36\lib\site-packages\pkg_resources_init_.py", line 565, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "C:\Python36\lib\site-packages\pkg_resources_init_.py", line 2631, in load_entry_point
return ep.load()
File "C:\Python36\lib\site-packages\pkg_resources_init_.py", line 2291, in load
return self.resolve()
File "C:\Python36\lib\site-packages\pkg_resources_init_.py", line 2297, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "C:\Python36\lib\site-packages\hupulive-1.3-py3.6.egg\hupu.py", line 30, in
ModuleNotFoundError: No module named 'docopt'

File "build/bdist.macosx-10.12-x86_64/egg/hupu.py", line 94 print(" 位置", end="") ^ SyntaxError: invalid syntax

➜ Installation cd HupuLive && python setup.py install
running install
running bdist_egg
running egg_info
creating HupuLive.egg-info
writing HupuLive.egg-info/PKG-INFO
writing top-level names to HupuLive.egg-info/top_level.txt
writing dependency_links to HupuLive.egg-info/dependency_links.txt
writing entry points to HupuLive.egg-info/entry_points.txt
writing manifest file 'HupuLive.egg-info/SOURCES.txt'
reading manifest file 'HupuLive.egg-info/SOURCES.txt'
writing manifest file 'HupuLive.egg-info/SOURCES.txt'
installing library code to build/bdist.macosx-10.12-x86_64/egg
running install_lib
running build_py
creating build
creating build/lib
copying hupu.py -> build/lib
creating build/bdist.macosx-10.12-x86_64
creating build/bdist.macosx-10.12-x86_64/egg
copying build/lib/hupu.py -> build/bdist.macosx-10.12-x86_64/egg
byte-compiling build/bdist.macosx-10.12-x86_64/egg/hupu.py to hupu.pyc
File "build/bdist.macosx-10.12-x86_64/egg/hupu.py", line 94
print(" 位置", end="")
^
SyntaxError: invalid syntax

creating build/bdist.macosx-10.12-x86_64/egg/EGG-INFO
copying HupuLive.egg-info/PKG-INFO -> build/bdist.macosx-10.12-x86_64/egg/EGG-INFO
copying HupuLive.egg-info/SOURCES.txt -> build/bdist.macosx-10.12-x86_64/egg/EGG-INFO
copying HupuLive.egg-info/dependency_links.txt -> build/bdist.macosx-10.12-x86_64/egg/EGG-INFO
copying HupuLive.egg-info/entry_points.txt -> build/bdist.macosx-10.12-x86_64/egg/EGG-INFO
copying HupuLive.egg-info/top_level.txt -> build/bdist.macosx-10.12-x86_64/egg/EGG-INFO
zip_safe flag not set; analyzing archive contents...
creating dist
creating 'dist/HupuLive-1.2-py2.7.egg' and adding 'build/bdist.macosx-10.12-x86_64/egg' to it
removing 'build/bdist.macosx-10.12-x86_64/egg' (and everything under it)
Processing HupuLive-1.2-py2.7.egg
Copying HupuLive-1.2-py2.7.egg to /usr/local/lib/python2.7/site-packages
Adding HupuLive 1.2 to easy-install.pth file
Installing hupu script to /usr/local/bin

Installed /usr/local/lib/python2.7/site-packages/HupuLive-1.2-py2.7.egg
Processing dependencies for HupuLive==1.2
Finished processing dependencies for HupuLive==1.2
➜ HupuLive git:(master) hupu -h
Traceback (most recent call last):
File "/usr/local/bin/hupu", line 11, in
load_entry_point('HupuLive==1.2', 'console_scripts', 'hupu')()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 561, in load_entry_point
return get_distribution(dist).load_entry_point(group, name)
File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2631, in load_entry_point
return ep.load()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2291, in load
return self.resolve()
File "/usr/local/lib/python2.7/site-packages/pkg_resources/init.py", line 2297, in resolve
module = import(self.module_name, fromlist=['name'], level=0)
File "/usr/local/lib/python2.7/site-packages/HupuLive-1.2-py2.7.egg/hupu.py", line 94
print(" 位置", end="")
^
SyntaxError: invalid syntax
➜ HupuLive git:(master)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.