Documentation
¶
Index ¶
- type Options
- type VideoInfo
- type VideoMeta
- type VideoMetadata
- type YouTube
- func (o *YouTube) FetchAndPrintPlaylist(playlistID string) (err error)
- func (o *YouTube) FetchAndSavePlaylist(playlistID, filename string) (err error)
- func (o *YouTube) FetchPlaylistVideos(playlistID string) (ret []*VideoMeta, err error)
- func (o *YouTube) GetVideoOrPlaylistId(url string) (videoId string, playlistId string, err error)
- func (o *YouTube) Grab(url string, options *Options) (ret *VideoInfo, err error)
- func (o *YouTube) GrabByFlags() (ret *VideoInfo, err error)
- func (o *YouTube) GrabComments(videoId string) (ret []string, err error)
- func (o *YouTube) GrabDuration(videoId string) (ret int, err error)
- func (o *YouTube) GrabDurationForUrl(url string) (ret int, err error)
- func (o *YouTube) GrabMetadata(videoId string) (metadata *VideoMetadata, err error)
- func (o *YouTube) GrabTranscript(videoId string, language string) (ret string, err error)
- func (o *YouTube) GrabTranscriptBase(videoId string, language string) (ret string, err error)
- func (o *YouTube) GrabTranscriptForUrl(url string, language string) (ret string, err error)
- func (o *YouTube) SaveVideosToCSV(filename string, videos []*VideoMeta) (err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type VideoInfo ¶
type VideoInfo struct { Transcript string `json:"transcript"` Duration int `json:"duration"` Comments []string `json:"comments"` Metadata *VideoMetadata `json:"metadata,omitempty"` }
type VideoMetadata ¶ added in v1.4.129
type VideoMetadata struct { Id string `json:"id"` Title string `json:"title"` Description string `json:"description"` PublishedAt string `json:"publishedAt"` ChannelId string `json:"channelId"` ChannelTitle string `json:"channelTitle"` CategoryId string `json:"categoryId"` Tags []string `json:"tags"` ViewCount uint64 `json:"viewCount"` LikeCount uint64 `json:"likeCount"` }
type YouTube ¶
type YouTube struct { *plugins.PluginBase ApiKey *plugins.SetupQuestion // contains filtered or unexported fields }
func NewYouTube ¶
func NewYouTube() (ret *YouTube)
func (*YouTube) FetchAndPrintPlaylist ¶ added in v1.4.89
func (*YouTube) FetchAndSavePlaylist ¶ added in v1.4.89
FetchAndSavePlaylist fetches all videos in a playlist and saves them to a CSV file.
func (*YouTube) FetchPlaylistVideos ¶ added in v1.4.89
FetchPlaylistVideos fetches all videos from a YouTube playlist.
func (*YouTube) GetVideoOrPlaylistId ¶ added in v1.4.89
func (*YouTube) GrabByFlags ¶
func (*YouTube) GrabComments ¶
func (*YouTube) GrabDurationForUrl ¶
func (*YouTube) GrabMetadata ¶ added in v1.4.129
func (o *YouTube) GrabMetadata(videoId string) (metadata *VideoMetadata, err error)
func (*YouTube) GrabTranscript ¶
func (*YouTube) GrabTranscriptBase ¶
func (*YouTube) GrabTranscriptForUrl ¶
Click to show internal directories.
Click to hide internal directories.