1 unstable release
0.1.0 | Dec 10, 2021 |
---|
#41 in #song
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
- Apache License, Version 2.0 (LICENSE-APACHE)
- MIT license (LICENSE-MIT)
at your option.
lib.rs
:
deezer downloader provides basic functionality needed to download a song from deezer
Dependencies
~5–17MB
~261K SLoC