Crates.io | downcida |
lib.rs | downcida |
version | 0.1.3 |
source | src |
created_at | 2024-09-26 07:39:18.004067 |
updated_at | 2024-09-28 05:05:36.066047 |
description | A Rust crate to download audio files using the Lucida API |
homepage | |
repository | https://github.com/0pandadev/downcida |
max_upload_size | |
id | 1387119 |
size | 45,923 |
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.
Add this to your Cargo.toml
:
[dependencies]
downcida = "0.1.3"
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(())
}