clspotify wrapper
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
hazycora 5f9dd301cc
add reconnect function, & allow changing login session
2 weeks ago
.gitignore rewrite to use librespot 3 weeks ago
LICENSE Add README.md and LICENSE 2 months ago
README.md correct import in usage example 3 weeks ago
SpotifyDL.py add reconnect function, & allow changing login session 2 weeks ago
index.js add reconnect function, & allow changing login session 2 weeks ago
package-lock.json correct import in usage example 3 weeks ago
package.json add coverArtUrl to album tracks in progress events 3 weeks ago

README.md

Spotify-dl

a JS wrapper for librespot

Installation

pip install librespot
npm i git+https://git.gay/h/spotify-dl.git

Usage

import spotifyDl from 'spotify-dl'

async function start() {
    await spotifyDl.login('username', 'password')
    await spotifyDl.download("https://open.spotify.com/track/3WTbsKon4Spdj8jOabrg5a", `Hold Me Just Because.mp3`, {
        onProgress: (data) => console.log(data.current?.name, data.percent.toFixed(0)+'% complete')
    })
    spotifyDl.stop()
}

start()