ytextract 0.3.0

A Rust library for extracting various information from YouTube pages
Documentation

A Library for extracting information from YouTube pages.

Basic Example

# #[tokio::main] async fn main() -> Result<(), Box<dyn std::error::Error>> {
// Get a Client for making request
let client = ytextract::Client::new().await?;

// Get information about the Video identified by the id "nI2e-J6fsuk".
let video = client.video("nI2e-J6fsuk".parse()?).await?;

// Print the title of the Video
println!("Title: {}", video.title());
# Ok(())
# }