//////
//////////
/////////////
/////////////////
///////////////////// ,,,,,,,
///////////////////..,,,,,,,,,,,,,,,,,
///////////////.,,,,,,,,,,,,,,,,,,,,,,,,,
////////////,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.
///////////,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,,.
/////////,,,,,,,,,,,,,,**********,,,,,,,,,,,,,,.
///////,,,,,,,,,,,,******************,,,,,,,,,,,,
///////,,,,,,,,,,**********************,,,,,,,,,,,
//////,,,,,,,,,,*************************,,,,,,,,,,
/////,,,,,,,,,,*************. .********,,,,,,,,,,
/////,,,,,,,,,**************. .*********,,,,,,,,,///
////,,,,,,,,,***************. *..**********,,,,,,,,,*////
////,,,,,,,,,***************. *************,,,,,,,,,*//////
////,,,,,,,,,***********. *************,,,,,,,,,*//////
////,,,,,,,,,,********* .************,,,,,,,,,/////
/////,,,,,,,,,********* .***********,,,,,,,,,,/
/////,,,,,,,,,,**********. ..**********,,,,,,,,,,
//////,,,,,,,,,,,*********************,,,,,,,,,
///////,,,,,,,,,,,,*****************,,,,,,,
////////,,,,,,,,,,,,,,***********,,,,,,
//////////,,,,,,,,,,,,,,,,,,,,,,,,,,
////////////,,,,,,,,,,,,,,,,,,,,,
//////////////,,,,,,,,,,,,,,,
/////////////////,,,,,,,, ______ ___ ______ __ __ ______
///////////////////// / ____// | / ____// / / // ____/
////////////////// / / / /| | / / / /_/ // __/
////////////// / /___ / ___ |/ /___ / __ // /___
/////////// \____//_/ |_|\____//_/ /_//_____/
////////
An innocuous little script that caches information about a GPM playlist using gmusicapi
Please use this script responsibly. Do not use this script to violate the terms
of your Google Play account, you might get in to trouble and that would be bad! :O
Install from GitHub
pip install -r requirements.txt --user
python setup.py develop --userTest in your environment
python setup.py testUse tox to run tests on multiple python versions
toxpython -m gpm_cache.core \
--email={your google email} \
--device-id 'XXXXXXXXXXXXXXXX' \
--cache-location '~/Music/gpm-download/' \
--playlist={your GPM playlist} \
--playlist-cached={playlist to move successfully cached items}
--rate-limit={rate limit (requests per sec)}Or, to save yourself typing these arguments multiple times, you can write a config
file e.g. gpm_args.txt like this:
--email
your@email.com
--playlist
Your Playlist Name
--playlist-cached
Your Cached Playlist Name
--cache-location
~/your-cache-location/
--debug-level
info
--device-id
ABC123and then you only have to type
python -m gpm_cache.core @gpm_args.txt
If the --playlist-cached argument is provided, then all songs which were succesfully cached will be saved to this playlist, and removed from the original playlist specified with --playlist