Crate ytextract[][src]

A Library for extracting information from YouTube pages.

Basic Example

// Get a Client for making request
let client = youtube_extractor::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());

Re-exports

pub use video::Video;

Modules

channel

Channel types.

video

Video types.

Structs

Client

A Client capable of interacting with YouTube

Id

A Id describing a Video or Playlist.

Thumbnail

A Thumbnail.

Enums

Error

Errors produced by this Library

Type Definitions

Result

The Result type used by this library