'Rip' Spotify playlists via youtube videos and update downloaded files.
Configuration is done by setting environment variables.
SPOTIPY_CLIENT_ID='<YOUR_SPOTIFY_KEY_ID>'
SPOTIPY_CLIENT_SECRET='<YOUR_SPOTIFY_KEY_SECRET>'
SPOTIPY_REDIRECT_URI='http://localhost/' # value doesn't matter
GHETTORIPPER_USERNAME='<YOUR_SPOTIFY_USERNAME>'
GHETTORIPPER_BASEDIR='/home/<YOUR_USERNAME>/Music/Ghettoripper' # any directory you want
- Call 'add-list ' for each playlist you want to download. (A playlist URI looks like this: spotify:user:1121742695:playlist:0snhUokcY72SSfwfY6YlKu)
- Call 'update'
- Enjoy files!
To download tracks which were added to the lists you downloaded, simply call 'update' again.
usage: ghettoripper.py [-h]
{add-list,rm-list,sync,infer,update-tracks,update-lists,update,ignore,unignore,delignored}
...
positional arguments:
{add-list,rm-list,sync,infer,update-tracks,update-lists,update,ignore,unignore,delignored}
sub-command help
add-list Add a playlist to the database
rm-list Remove a playlist from the database
sync Synchronize tracklists and playlist names from spotify
infer Infer YouTube video links for the tracks
update-tracks Download missing tracks and remove tracks that were
deleted
update-lists (Re)generate all playlist files
update shortcut for: sync, infer, update-tracks, update-lists
ignore Ignore the given track uris
unignore Unignore the given track uris
delignored Remove tracks that are ignored
optional arguments:
-h, --help show this help message and exit
$GHETTORIPPER_BASEDIR
├── ghettoripper.sqlite
├── playlists
│ ├── fertiger_Minimal.m3u
│ ├── Minimal_Techno_-_Tech_House.m3u
│ └── Techstep.m3u
└── tracks
├── 01whzdYiUQD9aK9TbX7EbZ.mp3
├── 02nwohaKLZbtec9jG6V7lc.mp3
├── ...
- Spotify Downloader (https://github.com/Ritiek/Spotify-Downloader): Can download single spotify tracks identified by their uri, uses youtube to find the file and download it, also adds ID3 tags.
- youtube-dl (https://github.com/rg3/youtube-dl): For downloading youtube videos, great software.