4 releases
0.1.3 | Sep 28, 2024 |
---|---|
0.1.2 | Sep 26, 2024 |
0.1.1 | Sep 26, 2024 |
0.1.0 | Sep 26, 2024 |
#249 in Audio
41 downloads per month
14KB
148 lines
This crate does currently not work because of a Token that is needed! see #1
Downcida
Downcida is a Rust crate that allows you to download Spotify tracks using the Lucida API. It provides a simple interface to download audio files from Spotify tracks and save them to a specified directory.
Features
- Different download Formats (FLAC, WAV, OGG, OPUS, M4A, MP3 e.g)
- Spotify
- Qobuz
- Tidal
- Soundcloud
- Deezer
- Amazon Music
- Beatport
Installation
Add this to your Cargo.toml
:
[dependencies]
downcida = "0.1.3"
Usage
Here's a basic example of how to use Downcida:
use downcida::{Downcida, AudioFormat};
use std::env;
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
Downcida::download("5xPcP28rWbFUlYDOhcH58l", env::current_dir()?, Some("US"), AudioFormat::FLAC).await?;
Ok(())
}
Dependencies
~9–21MB
~278K SLoC