Crate ytextract[][src]

Expand description

A Library for extracting information from YouTube pages.

Basic Example

// 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());

Re-exports

pub use playlist::Playlist;
pub use stream::Stream;
pub use video::Video;

Modules

Channel types.

Playlists

Streams of a YouTube video

Video types.

Structs

A Client capable of interacting with YouTube

A Youtube Id, associated with various things.

A Thumbnail.

Enums

Errors produced by this Library

Type Definitions

The Result type used by this library