在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):simon-weber/gmusicapi开源软件地址(OpenSource Url):https://github.com/simon-weber/gmusicapi开源编程语言(OpenSource Language):Python 100.0%开源软件介绍(OpenSource Introduction):gmusicapi: an unofficial API for Google Play Musicgmusicapi allows control of Google Music with Python. from gmusicapi import Mobileclient
api = Mobileclient()
# after running api.perform_oauth() once:
api.oauth_login('<a previously-registered device id>')
# => True
library = api.get_all_songs()
sweet_track_ids = [track['id'] for track in library
if track['artist'] == 'The Cat Empire']
playlist_id = api.create_playlist('Rad muzak')
api.add_songs_to_playlist(playlist_id, sweet_track_ids) gmusicapi is not supported nor endorsed by Google. That said, it's actively maintained, and powers a bunch of cool projects:
Getting startedStart with the usage docs, which will guide you through installation and the available apis. Once you're up and running, you can explore the rest of the docs at http://unofficial-google-music-api.readthedocs.io. If the documentation doesn't answer your questions, or you just want to get in touch, either drop by #gmusicapi on Freenode or shoot me an email. Status and updates
For fine-grained development updates, follow me on Twitter: @simonmweber. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论