Documentation
¶
Overview ¶
Package yt_transcript fetches YouTube video transcripts via the innertube API. Stdlib only, zero dependencies.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client fetches YouTube transcripts.
func NewClient ¶
func NewClient() *Client
NewClient returns a Client with a default 30s timeout and cookie jar.
func (*Client) FetchTranscript ¶
FetchTranscript retrieves the transcript for a YouTube video in the given language.
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
server
command
Command yt-transcript-server serves YouTube transcripts over HTTP.
|
Command yt-transcript-server serves YouTube transcripts over HTTP. |
|
yt-transcript
command
Command yt-transcript fetches YouTube transcripts from the command line.
|
Command yt-transcript fetches YouTube transcripts from the command line. |
|
internal
|
|
|
cache
Package cache provides a simple in-memory TTL cache for transcript segments.
|
Package cache provides a simple in-memory TTL cache for transcript segments. |
|
handlers
Package handlers provides HTTP handlers for the yt-transcript server.
|
Package handlers provides HTTP handlers for the yt-transcript server. |
|
middleware
Package middleware provides HTTP middleware for the yt-transcript server.
|
Package middleware provides HTTP middleware for the yt-transcript server. |
Click to show internal directories.
Click to hide internal directories.