Code Monkey home page Code Monkey logo

doubanfm2xiami's Introduction

DoubanFM2Xiami

将豆瓣电台的加心曲目导入到虾米收藏

Requirements

DirtyPart

  • 豆瓣在登录的时候很可能需要验证码,此时验证码会弹出显示,需要手工输入(PIL 只在此时用到...)
  • 由于虾米没有提供公开搜索接口,直接把搜索页面命中的第一个记录认定为匹配曲目,因此很可能无法 100% 匹配
  • 整个流程根据曲目数量会发起多次请求,耗时较长,曲目信息列表、匹配到的曲目 ID 都会序列化保存,可更改 transfer() 函数分步执行提升成功率

Contribution

如果发现脚本失效了,非常感谢 提交一个 Issue 让我知道,非常非常感谢直接 fork 并 fix :)

Example

# 账户信息
douban = ('Douban Username', 'Douban password')
xiami = ('Xiami Username', 'Xiami password')

db2xm = DB2XM(douban, xiami)
db2xm.transfer()
``

doubanfm2xiami's People

Contributors

newt0n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

doubanfm2xiami's Issues

请问有在虾米搜索豆瓣FM当前播放歌曲的脚本么?

之前搜到过一个脚本↓
doubanFM2NetEase
doubanFM searching in netease cloud music

现在163崩的要命.太多歌曲不能播放.在虾米搜了搜发现有.想换去虾米.不过这脚本只能用在163.
用相似的搜了一下发现有这个添加红心的脚本.不过这东西好像不是一回事儿....想请问一下有类似的搜索脚本么?

编码变了?获取加心曲目时出错

Traceback (most recent call last):
File "db2xm.py", line 221, in
db2xm.transfer()
File "db2xm.py", line 206, in transfer
self.getDbFavs()
File "db2xm.py", line 95, in getDbFavs
print u'豆瓣:开始获取电台加心曲目...'
UnicodeEncodeError: 'ascii' codec can't encode characters in position 0-12: ordinal not in range(128)

seems not work

Hi, I changed the username and password and tried several times, still didn't work. The fav song amount is always 0.

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.