Giter Site home page Giter Site logo

qqmusicapi's Introduction

QQMusicAPI

网页QQ音乐的一些API

本项目仅用于个人学习,禁止任何形式的商用,也不得将此项目用于学习以外的其他用途。

使用方法

QQMusic

>>> from QQMusic import QQMusic
>>> qqmusic = QQMusic()
>>> song_list = qqmusic.search_song('世界ノ歌')
>>> song_list
<QQMusic.SongList object at 0x7f9808406f98>
>>> print(song_list)
0. Weight of the World/壊レタ世界ノ歌 (Weight of the World/破灭的世界之歌) - 河野マリナ  < NieR:Automata Original Soundtrack >
1. 世界を変えるピアノが歌う - 末光篤 / 松本素生  < 色彩協奏曲 Colors Of Concerto >
2. 君のにる为赠诗 - RomariaCrusade  < 秋篝ノ歌 >
3. 落叶ぱねろ - 葉月ゆら  < 秋篝ノ歌 >
4.  - RomariaCrusade  < 秋篝ノ歌 >
5. 守唄 - RomariaCrusade  < 秋篝ノ歌 >
6. 生死の誾 - RomariaCrusade  < 秋篝ノ歌 >
7. RPG - RomariaCrusade  < 秋篝ノ歌 >
8. 月と死神 (Another Moon Ver) - RomariaCrusade  < 秋篝ノ歌 >
9. 秋篝ノ歌 - RomariaCrusade  < 秋篝ノ歌 >
>>> song_list[0].save(path='song')
download: Weight of the World/壊レタ世界ノ歌 (Weight of the World/破灭的世界之歌) ------ 歌曲下载完成
True
>>> song_list.add(song_list[7])
>>> print(song_list)
0. Weight of the World/壊レタ世界ノ歌 (Weight of the World/破灭的世界之歌) - 河野マリナ  < NieR:Automata Original Soundtrack >
1. 世界を変えるピアノが歌う - 末光篤 / 松本素生  < 色彩協奏曲 Colors Of Concerto >
2. 君のにる为赠诗 - RomariaCrusade  < 秋篝ノ歌 >
3. 落叶ぱねろ - 葉月ゆら  < 秋篝ノ歌 >
4.  - RomariaCrusade  < 秋篝ノ歌 >
5. 守唄 - RomariaCrusade  < 秋篝ノ歌 >
6. 生死の誾 - RomariaCrusade  < 秋篝ノ歌 >
7. RPG - RomariaCrusade  < 秋篝ノ歌 >
8. 月と死神 (Another Moon Ver) - RomariaCrusade  < 秋篝ノ歌 >
9. 秋篝ノ歌 - RomariaCrusade  < 秋篝ノ歌 >
10. RPG - RomariaCrusade  < 秋篝ノ歌 >
>>> song_list.save()
download: Weight of the World/壊レタ世界ノ歌 (Weight of the World/破灭的世界之歌) ------ 歌曲下载完成
download: 世界を変えるピアノが歌う ------ 歌曲下载完成
download: 君のにる为赠诗 ------ 歌曲下载完成
download: 落叶ぱねろ ------ 歌曲下载完成
download:  ------ 歌曲下载完成
download: 守唄 ------ 歌曲下载完成
download: 生死の誾 ------ 歌曲下载完成
download: RPG ------ 歌曲下载完成
download: 月と死神 (Another Moon Ver) ------ 歌曲下载完成
download: 秋篝ノ歌 ------ 歌曲下载完成
download: RPG ------ 歌曲下载完成
>>> song_list[7].lrc_save()
download lrc: RPG ------ 歌词下载完成
True

未来可能会添加的功能

  • 获得播放歌曲的具体信息(时长、已播放时间等)。
  • 专辑、歌单、排行榜等信息(很简单,看什么时候有空吧)。
  • 重新整理一遍逻辑

已知问题

  • 在获取歌曲失败的时候(比如 vkey 认证未通过、网络错误等)没有完整的提示。

qqmusicapi's People

Contributors

meik2333 avatar

Watchers

 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.