Spottydl
A NodeJS Spotify Downloader package without any API Keys or authentication from Spotify or Youtube-Music.
However, this requires ffmpeg to be installed on your system...
Project Status
Installation
Make sure you have ffmpeg installed on your system preferably version >= 4.0
npm i spotifydl-core
yarn add spotifydl-core
Usage
First we require/import the module
const SpottyDL = require('spottydl')
import SpottyDL from 'spottydl'
Getting a Track Info
(async() => {
await SpottyDL.getTrack("https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT")
.then(results => {
console.log(results)
});
})();
Getting an Album/Single Info
(async() => {
await SpottyDL.getAlbum("https://open.spotify.com/album/2mxFsS5yylSTHNivV53HoA")
.then(results => {
console.log(results)
});
})();
Downloading a Track
(async() => {
await SpottyDL.getTrack("https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT")
.then(async(results) => {
let track = await SpottyDL.downloadTrack(results, "~/somePath")
console.log(track)
});
})();
Downloading an Album/Single
(async() => {
await SpottyDL.getAlbum("https://open.spotify.com/track/4cOdK2wGLETKBW3PvgPWqT")
.then(async(results) => {
let album = await SpottyDL.downloadAlbum(results)
console.log(album)
});
})();
Notes
What this module simply does is that it scrapes data from Spotify, then finds the right track/song from Youtube-Music.
Hence, there's no illegal action or DRM bypass being done within this module, as all data is freely taken and used the right way
Special Thanks to:
ytdl-core
ytmusic-api
node-id3
And other notable NodeJS Spotify downloader projects :D