deezer_downloader

Crates.iodeezer_downloader
lib.rsdeezer_downloader
version0.1.0
sourcesrc
created_at2021-12-10 07:48:55.884438
updated_at2021-12-10 07:48:55.884438
descriptioncrate to download music from deezer
homepage
repositoryhttps://github.com/zggff/deezer_downloader
max_upload_size
id495611
size24,293
Giga Maxim (zggff)

documentation

README

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.

Commit count: 13

cargo fmt