extract-sptf-playlist
Install
npm install --save haidang666/extract-sptf-playlist
or
npm install --save extract-sptf-playlist
Example
const getPlaylist = require('extract-sptf-playlist');
const url =
'https://open.spotify.com/playlist/3TtYojG66KzrYHR58t5kjZ?si=W1mw5t4zQHKFkaUofbw_ig&nd=1';
const playlist = await getPlaylist(url);
To save playlist to file, pass the filePath
param.
getPlaylist(url, 'data.json');