ytdlp-rs

Crates.ioytdlp-rs
lib.rsytdlp-rs
version0.1.0
created_at2025-07-05 14:31:49.922708+00
updated_at2025-07-05 14:31:49.922708+00
descriptionThe thinnest yt-dlp wrapper.
homepage
repositoryhttps://github.com/siriusmart/ytdlp-rs
max_upload_size
id1739156
size105,338
Sirius (Siriusmart)

documentation

README

ytdlp-rs

The thinnest yt-dlp wrapper. Contains methods for all command options.

Getting started

  1. Add to dependency
[dependencies]
ytdlp-rs = "0.1.0"
  1. To run a command, use spawn.
Builder::("/path/to/yt-dlp")
    .command_option_1()
    .command_option_2()
    .url(url)
    .spawn()?
    .wait()?;
  1. Parse and collect command output.
let (stdout, stderr) = Builder::new("yt-dlp")
    .extract_audio()
    .format("123")
    .run()?;

let collected = ParserBuilder::new()
    .map(|s: String| serde_json::from_str(&s).unwrap())
    .read_collect(stdout);
Commit count: 0

cargo fmt