Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client wraps YouTube transcript and metadata extraction.
func (*Client) FetchMetadata ¶
FetchMetadata retrieves video metadata from the YouTube watch page.
func (*Client) FetchTranscript ¶
FetchTranscript fetches captions using the YouTube InnerTube API.
type Metadata ¶
type Metadata struct {
Title string `json:"title"`
Channel string `json:"channel"`
DurationSeconds int `json:"duration_seconds"`
Language string `json:"language"`
}
Metadata holds video metadata from YouTube.
type Transcript ¶
type Transcript struct {
Text string `json:"text"`
Language string `json:"language"`
Source string `json:"source"` // "manual", "auto"
}
Transcript holds the extracted transcript and its source.
Click to show internal directories.
Click to hide internal directories.