Skip to content

Instantly share code, notes, and snippets.

@ThomasGaubert
ThomasGaubert / playsong.py
Last active April 4, 2020 19:46
Play songs from Google Play Music in VLC.
from gmusicapi import Webclient
from gmusicapi import Mobileclient
import vlc
import urllib
# Use Google account credintials. If two factor is enabled, use application specific password.
email = 'user@gmail.com'
password = 'password'
# Device ID for API queries. Leave blank if unknown.