rusty dl
v1.0.8
Rusty_dl is a versatile crate designed for effortlessly fetching a wide range of content types, including YouTube videos, tweet media (such as videos, images, and gifs), and eventually various other media directly from the web.
cargo add rusty_dl
use rusty_dl::prelude::{Downloader, YoutubeDownloader, DownloadError};
const URL: &str = "my_yt_video_link";
fn main() -> Result<(), DownloadError> {
let downloader = YoutubeDownloader::new(URL);
downloader.blocking_download()
}
use rusty_dl::prelude::{Downloader, YoutubeDownloader, DownloadError};
const URL: &str = "my_yt_video_link";
#[tokio::main]
async fn main() -> Result<(), DownloadError> {
let downloader = YoutubeDownloader::new(URL);
downloader.download().await
}
This crate also exports a TwitterDownloader and a ResourceDownloader which work the same way as presented up there.
See more in examples directory
Contributions are welcome! Feel free to open issues or submit pull requests to help improve this library.
This project is licensed under the MIT License.