V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
limbo0
V2EX  ›  Python

命令行 douban.fm 的 python 版本

  •  
  •   limbo0 · 2014-10-10 20:14:55 +08:00 · 4626 次点击
    这是一个创建于 3457 天前的主题,其中的信息可能已经有所发展或是发生改变。
    参照node.js版本http://www.v2ex.com/t/77727,制作的,主体功能已经完成,还有一些功能还没有优化.目前在ubuntu14.04中能完美使用,其他平台还没有测试

    node.js版本在zhs和tmux中有显示不了颜色的bug,所以仿照着做了这个python版本.

    安装

    sudo pip install douban.fm

    需要mplayer播放器依赖,如未安装:

    sudo apt-get install mplayer

    项目地址https://github.com/taizilongxu/douban.fm

    欢迎PR
    7 条回复    2017-04-07 09:06:23 +08:00
    lwd2136
        1
    lwd2136  
       2014-10-10 22:39:18 +08:00
    开发个openwrt版本
    usb声卡出声?
    limbo0
        2
    limbo0  
    OP
       2014-10-11 08:45:36 +08:00
    @lwd2136 后台是调用mplayer播放器
    houfukude
        3
    houfukude  
       2014-10-11 08:53:13 +08:00 via Android
    哈哈我也做了一个py命令行版本的豆瓣
    不过我按照那个豆瓣高清插件
    用的是豆瓣的播放列表+网易320k的源
    顺带我后端是用mpg123来播放的
    https://github.com/houfukude/douban320k
    atmlvs
        4
    atmlvs  
       2014-10-11 11:09:43 +08:00
    @houfukude 这个办法好
    An0sunShy
        5
    An0sunShy  
       2014-11-30 06:01:32 +08:00
    这个默认只有64K 不付费能有更好的音质吗?
    limbo0
        6
    limbo0  
    OP
       2014-11-30 10:16:38 +08:00
    @An0sunShy 这个不能啊,调用的都是原生豆瓣FM的源,可以看看@houfukude 的这个
    gevin
        7
    gevin  
       2017-04-07 09:06:23 +08:00
    我在 mac 上用的感觉不错,不过几乎每首歌没放完就会跳到下一首,不知是啥原因……
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   1026 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 22:30 · PVG 06:30 · LAX 15:30 · JFK 18:30
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.