Coder Social home page Coder Social logo

danmu.fm's Introduction

danmu.fm

这是一个用来获取斗鱼TV指定主播的弹幕的命令行小工具.

使用参见 http://www.jianshu.com/p/2e0d14978ae9

原理参见 http://www.jianshu.com/p/ef0225b6bb0e

如何使用

如果你是MacOSX的用户,你只需要

brew install mplayer
pip3 install danmu.fm
# danmu.fm -q 1 -v 1 [url]
# 比如
danmu.fm -q 2 -v 1 http://www.douyutv.com/16789
# -q 参数 0为不调用mplayer进行播放,1为使用mplayer进行普清视频的播放,2为使用mplayer进行高清视频的播放,3为使用mplayer进行超清视频的播放

如果你是Ubuntu 用户,你只需要

pip3 install danmu.fm
# danmu.fm  -v 1 [url]
# 比如
danmu.fm  -v 1 http://www.douyutv.com/16789
#ubuntu上mplayer播放器貌似有些问题,弹幕部分应该没有问题.

感谢

往事如风 douban.fm (Python版本)

License

MIT

danmu.fm's People

Contributors

hylarucoder avatar guoyiteng avatar

Watchers

James Cloos avatar taozywu avatar

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.