spotify-dl-lib
A rust library which allows you to download spotify songs if you have a premium account
Features
- Download tracks, albums, and playlists
- Supports mp3 (enable the mp3 feature) and flac format
- Configurable download concurrency and compression (compression only applies to flac!)
How to use this library
get your spotify username (your username is not your display name) and password ready
in case you do not know how to get your spotify username here is a quick tutorial
- and now you should have your spotify profile url in your clipboard, in my case, this is my profile url: https://open.spotify.com/user/xfvf8ol1ezj9bv5la7ty0vzut?si=8a8b7c4b7c5746df
- this is the important part we need from the url: xfvf8ol1ezj9bv5la7ty0vzut, save this for later
if your application uses a UI, a websocket server is exposed at ws://127.0.0.1:4040 :)) an example project will be very soon coming on my github which uses this websocket :D
example
use SpotifyDownloader;
async
Important!!
Using this project is against Spotifys ToS, use it at your own risk. I am not responsible for any damanges/limitations caused to your Spotify Account.
Credits
This project was only possible due of the existence of this amazing project <3 much love to all of you. If you are looking for a CLI solution for just downloading spotify tracks, stick to the mentioned project instead.