Crates.io | rusty_dl |
lib.rs | rusty_dl |
version | 1.0.8 |
source | src |
created_at | 2024-04-07 02:49:51.673759 |
updated_at | 2024-04-21 17:38:56.103869 |
description | A crate for downloading youtube videos, twitter medias (videos, images, gif) from tweets and files on the web. |
homepage | |
repository | https://github.com/DevYatsu/rusty-dl |
max_upload_size | |
id | 1198683 |
size | 191,395 |
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.