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.
|
2 weeks ago | |
---|---|---|
.gitignore | 3 weeks ago | |
LICENSE | 2 months ago | |
README.md | 3 weeks ago | |
SpotifyDL.py | 2 weeks ago | |
index.js | 2 weeks ago | |
package-lock.json | 3 weeks ago | |
package.json | 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()