A CLI and GUI solution to download music from Spotify
Download entire Spotify playlists, albums or tracks (directly from Spotify at 160kbps) to your local machine.
###Prerequisites:
- Install NodeJS (LTS) if you haven't already. (NodeJS Downloads)
- Download this repository as a .zip archive
- Unpack the contents to a folder of your choice
- Run
npm install
from a commandline
###CLI Usage
Usage: node main.js [options]
Options:
-h, --help output usage information
-V, --version output the version number
-u, --username [username] Spotify Username (required)
-p, --password [password] Spotify Password (required)
-i, --uri [URI / URL] Spotify URI / URL for playlist, album or track - another valid input for this is "library"
-d, --directory [directory] Download Directory - Default: "downloads" folder within the same directory
-f, --folder Create a sub-directory for playlist / album / library
####So: If you wanted to download the playlist "Top 100 Hip-Hop Tracks on Spotify", you would use the following command:
node main.js -u yourusername -p yourpassword -i spotify:user:spotify:playlist:06KmJWiQhL0XiV6QQAHsmw
OR
node main.js -u yourusername -p yourpassword -i https://play.spotify.com/user/spotify/playlist/06KmJWiQhL0XiV6QQAHsmw
If you wanted to download the album "Epiphany", you would use the following command:
node main.js -u yourusername -p yourpassword -i spotify:album:44Z1ZEmOyois0QoAgfUxrD
OR
node main.js -u yourusername -p yourpassword -i https://play.spotify.com/album/44Z1ZEmOyois0QoAgfUxrD
If you wanted to download the track "2Pac I Get Around", you would use the following command:
node main.js -u yourusername -p yourpassword -i spotify:track:74kHlIr01X459gqsSdNilW
OR
node main.js -u yourusername -p yourpassword -i https://play.spotify.com/track/74kHlIr01X459gqsSdNilW
###Or Run it from your browser: To open in browser, just run from terminal/cmd file run.sh/run.bat (depends of your OS) this file will install all needed modules an start a local server (address will be displayed in terminal, by default is http://localhost:3001). Just open this address in your browser and ... enjoy :)
- Don't use it ( ͡° ͜ʖ ͡°)