Crate ytextract[−][src]
Expand description
A Library for extracting information from YouTube pages.
Notes
Subscriber count
All functions that return subscriber counts only return 3-digit precision
values as that is all that youtube returns. That means if channel has
exactly 164_583
subscribers, this library will return 164_000
.
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 channel::Channel;
pub use error::Error;
pub use playlist::Playlist;
pub use stream::Stream;
pub use video::Video;
Modules
Channel types.
Error produced by YouTube and this library
Playlists
Streams of a YouTube video
Video types.
Structs
Type Definitions
The Result type used by this library