Documentation
¶
Overview ¶
Package search queries YouTube search results without an API key by parsing the ytInitialData JSON embedded in the results page.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Result ¶
type Result struct {
ID string
Title string
Channel string
Duration string // "3:33"; empty for live streams
Views string // "1.2M views"
Live bool
}
Result is one video from a search results page.
func (Result) ThumbnailURL ¶
ThumbnailURL returns a 320×180 thumbnail (exact 16:9, no letterbox bars).
Click to show internal directories.
Click to hide internal directories.