Crates.io | deezer_downloader |
lib.rs | deezer_downloader |
version | 0.1.0 |
source | src |
created_at | 2021-12-10 07:48:55.884438 |
updated_at | 2021-12-10 07:48:55.884438 |
description | crate to download music from deezer |
homepage | |
repository | https://github.com/zggff/deezer_downloader |
max_upload_size | |
id | 495611 |
size | 24,293 |
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(())
}
Licensed under either of
at your option.