一个非官方的 Google Music 客户端库。
gmusicapi 允许控制
Google 音乐 <http://music.google.com>__ 与 Python。
.. code-block:: Python
from gmusicapi import Mobileclient api = Mobileclient()
api.oauth_login('<之前注册的设备 ID>')
library = api.get_all_songs() sweet_track_ids = [track['id'] for track in library] 如果 track['artist'] == 'The Cat Empire' playlist_id = api.create_playlist('Rad muzak') api.add_songs_to_playlist(播放列表 ID, 甜蜜歌曲 ID) gmusicapi 不受 Google 支持和认可。 尽管如此,它仍然得到积极维护,并支持了一些很酷的项目:
专为视障人士设计的客户端 <https://github.com/chrisnorman7/gmp3>,, 一款基于 Web 的 Jukebox,自带服务器 <https://github.com/chrisnorman7/jukebox>,, 命令行客户端 <https://github.com/christopher-dg/pmcli>, 客户端 <https://github.com/and3rson/clay>,, FUSE 文件系统 <https://github.com/EnigmaCurry/GMusicFS>, 和 Alexa 技能 <https://github.com/stevenleeg/geemusic>,开始使用----------------- 先从「使用说明文档 http://unofficial-google-music-api.readthedocs.io/en/latest/usage.html#usage`__,>」开始
暂无开放 Issues,或尚未同步最近议题。