Crate youtube_transcript

Source
Expand description

§Asynchronous Youtube Transcript library

Get transcripts / captions of videos.

§Downloading transcript from Youtube:

let link:&str = "https://www.youtube.com/watch?v=RcYjXbSJBN8";

let youtube_loader:Youtube = YoutubeBuilder::default().build();

let transcript:Transcript = youtube_loader.transcript(link).await?;

Structs§

Config
configuration that contains anchor points for identifying captions from youtube’s html webpage.
Transcript
Struct containing youtube’s transcript data as a Vec<TranscriptCore>
TranscriptCore
Struct that contains data about transcirpt text along with start and duration in the whole video.
Youtube
Youtube container that holds the Config.
YoutubeBuilder
Builder struct for building Youtube