Download music from Google Play Music
based on wlp2s0/GMusic-Downloader - thank you very much for this!
Since Google Play Music is being discontinued, I needed a quick way to recover my music before it's gone forever. Google's client didn't work for me, nor did the sync or manual download (various reasons). Luckly, wlp2s0 had created a template from which I was able to extend this piece of software to download entire library. I haven't tested it extensively, so bugs are very likely. I don't know how it works with libraries based on GPM's subscription. Either way, I hope this helps someone. If you find some bugs, let me know and I'll try to find some time to fix it.
pip install -r requirements.txt
usage:
gmusic-dl.py [-h] [-o OUTPUT] [-i DEVICE_ID] [-l] mail
positional arguments:
mail Your google mail for login.
optional arguments:
-h, --help show this help message and exit
-o OUTPUT, --output OUTPUT
Destination to download files to. Default is ./Music/ (same folder)
-i DEVICE_ID, --device-id DEVICE_ID
Device ID to use - run without argument first to see available device IDs and then use one.
-l, --log Enable to have log printed to "log.txt".
python gmusic-dl.py -o "/home/even-gits/Music/" [email protected]
It will fail at start and print out your available device identifiers. Use one and proceed with additional command switch like so:
python gmusic-dl.py -o "/home/even-gits/Music/" -i "123123123" [email protected]