Skip to content

Instantly share code, notes, and snippets.

@kiranchavala
Last active July 5, 2021 16:08
Show Gist options
  • Save kiranchavala/36afff2694c620421e26dd8c85cd74a4 to your computer and use it in GitHub Desktop.
Save kiranchavala/36afff2694c620421e26dd8c85cd74a4 to your computer and use it in GitHub Desktop.
spotify songs download
Install youtube-dl
brew install youtube-dl
Install ffmpeg for mp3 conversion
brew install ffmpeg
Installing spotify dl
pip3 install spotify_dl
Login to the spotify developer console and create a app
https://developer.spotify.com/dashboard/
Login to the google developer console
https://console.developers.google.com/apis/api/youtube/overview?pli=1
Enable the youtube data API v3 and create api credential
On the mac
export SPOTIPY_CLIENT_ID=cfbe866b86c2459883fbbbfb23e5f1ba
export SPOTIPY_CLIENT_SECRET=c5bdd6fd1fa44acfa72f0428adc6374f
export SPOTIPY_REDIRECT_URI=https://spotifydl.sathyabh.at/
export YOUTUBE_DEV_KEY=AIzaSyDTQWAoXr4PIsG7rXkT1HPzgHFTDU3cXxg
spotify_dl -p playlist_id -u user_name -o download_directory
youtube-dl -x --audio-format mp3 'https://www.youtube.com/watch?v=mrqgz4_a4PU'
spotify_dl -l 'https://open.spotify.com/playlist/59fysWAvbQfPsy3ECyZj9l?si=f2h5Y7-DTNKP9fxs1e94zw' -o /Users/kiranchavala/Desktop/songs/
spotify_dl -help
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment