• This repository has been archived on 22/Jan/2022
  • Stars
    star
    2,501
  • Rank 18,363 (Top 0.4 %)
  • Language
    Python
  • License
    BSD 3-Clause "New...
  • Created almost 13 years ago
  • Updated almost 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

An unofficial client library for Google Music.

gmusicapi: an unofficial API for Google Play Music

gmusicapi 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 started

Start 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

build_status

  • January 2020: Python 2 support dropped.
  • November 2018: proper OAuth support for the mobileclient.
  • February 2016: Python 3 support!
  • September 2015: Google switched to a new music uploading endpoint, breaking uploading for outdated versions of gmusicapi.
  • June 2015: Full mobileclient and webclient functionality was restored.
  • May 2015: Limited mobileclient functionality was restored.
  • April 2015: Google deprecated clientlogin, breaking both the webclient and mobileclient.
  • November 2013: I started working fulltime at Venmo, meaning this project is back to night and weekend development.

For fine-grained development updates, follow me on Twitter: @simonmweber.

More Repositories

1

Autoplaylists-for-Google-Music

Adds autoplaylists, aka iTunes "smart playlists", to Google Music.
JavaScript
95
star
2

gpsoauth

A python client library for Google Play Services OAuth.
Python
72
star
3

python-libfaketime

A fast time mocking alternative to freezegun that wraps libfaketime.
Python
69
star
4

gchatautorespond

Automatic responses for Google Chat and Hangouts.
Python
57
star
5

Programming-Language-Identification

Accompanying code for the arXiv paper first published in June of 2011
Python
27
star
6

the-listserve-archive

An archive of posts from The Listserve.
Python
18
star
7

Google-Music-Playlist-Importer

a script for importing plaintext playlists into Google Music.
Python
16
star
8

Instant-SQLite-Audit-Trail

Set up a quick and dirty audit log on an SQLite db.
Python
15
star
9

crunchbang-conf

Old config files for #!. Up to date config can be found at:
Vim Script
12
star
10

plugserv

An ad server just for plugging your own projects.
Python
12
star
11

kleroteria

An email lottery and spiritual successor to The Listserve.
Python
11
star
12

Predicting-Code-Popularity

Goal: classify GitHub repo -> star range. This was for a final project in a data mining class.
Python
11
star
13

XSS-over-NBNS

Proof of concept toolkit for demonstrating xss attacks against the Netgear WGR614v5.
Python
10
star
14

omegle-to-irc

An irc bot that allows communication with strangers on Omegle.
Python
9
star
15

Google-Music-Turntable-Uploader

A Chrome extension that enables easy uploading to turntable.fm from a Google Music library.
JavaScript
8
star
16

Mirror-MediaMonkey-to-Google-Music

(abandoned) Allows automated, one-way syncing of a library from MediaMonkey to Google Music.
Python
7
star
17

dotfiles

Shell
5
star
18

gomarkov

Simple, fast, in-memory markov chains in Go.
Go
4
star
19

repominder

Get notified if you've forgotten to cut a release.
Python
4
star
20

Google-Music-genre-analysis

A tool to analyze the genres in a Google Music library.
Python
3
star
21

instant-discourse

Intelligent stranger chat.
Python
3
star
22

gomegle

A golang client library for omegle.com.
Go
2
star
23

Hacker-News-Keyboard-Navigation

2
star
24

simon-weber.github.com

Source for my personal site and blog.
CSS
1
star
25

csug-tutoring

hooray bootstrap
JavaScript
1
star