A collection of terminal tools to download music from youtube.
To setup just do ./setup.sh
(might need some priviledge).
batch-dl
takes a list of song names and downloads them using youtube-dl.list-spotify
takes a url from Spotify's web UI and lists all all the songtracks in it. Piping these two programs together allows you to "download" songs from spotify. This is exactly whatspotify-dl
does.set-album
set album allows you to set album name of a mp3 file.
- The usage of
batch-dl
is pretty straight forward. Seebatch-dl -h
for help. Same forset-album
. list-spotify
andspotify-dl
rely on Spotify's API, so you would need to get an access token to use them. If everything is in place, juse `list-spotify -u [url of album or playlist] will list all the sound tracks in standard output.
list-spotify -r
redirects you to the url to register an app. After registering the app, copy yourclient id
, which you would need for next step.list-spotify -g
redirects you to the url to manually request anaccess token
.list-spotify -a [access token]
allows you to storeaccess token
you obtained from last step.