#downloader #deezer #download #music #song

deezer_downloader

crate to download music from deezer

1 unstable release

0.1.0 Dec 10, 2021

#40 in #song

MIT/Apache

14KB
296 lines

Deezer Loader

provides basic functionality needed to download a song from deezer

use std::{error::Error, fs::File, io::Write};
use deezer_downloader::Downloader;

#[tokio::main]
async fn main() -> Result<(), Box<dyn Error>> {
    let downloader = Downloader::new().await?;
    let song = downloader.download_song(92719900).await?;
    let mut file = File::create("song.mp3")?;
    file.write(&song)?;

    Ok(())
}

License

Licensed under either of

at your option.


lib.rs:

deezer downloader provides basic functionality needed to download a song from deezer

Dependencies

~5–21MB
~259K SLoC