1 unstable release
new 0.1.0 | Dec 20, 2024 |
---|
#78 in Multimedia
95 downloads per month
14KB
207 lines
RustyTDown
A lightweight and efficient YouTube video downloader written in Rust. This tool allows you to download YouTube videos with just a few essential dependencies for core functionality!
Features
- ð High-performance async downloads using reqwest
- ðŊ Carefully selected minimal dependencies for core functionality
- ð Download statistics and TTFB measurements
- ð Streaming support
- ðŠķ Lightweight and efficient
Prerequisites
- Rust 1.75 or higher
- FFmpeg (required for audio conversion)
Usage
[dependencies]
rustytdown = "0.1.0"
use rustytdown::YouTubeDownloader;
#[tokio::main(flavor = "current_thread")]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let downloader = YouTubeDownloader::new()?;
downloader.download_and_convert("dQw4w9WgXcQ").await?;
Ok(())
}
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Dependencies
~9â20MB
~270K SLoC