import { Util } from "https://deno.land/x/youtube_sr@v4.3.4-deno/mod.ts";
Static Methods
durationString(data: any): string
filter(ftype: string): string
getContinuationToken(ctx: any): string
getHTML(url: string, requestOptions?: RequestInit): Promise<string>
Parse HTML
getInfoLikesCount(info: Record<string, any>)
getPlaylist(html: string, limit?: number): Playlist
getPlaylistURL(url: string): string
getPlaylistVideos(data: any, limit?: number)
getVideo(html: string)
innertubeKey(): Promise<string>
json(data: string)
makeRequest(url?, data?: any)
parseChannel(data?: any): Channel
Parse channel from raw data
parseDuration(duration: string): number
Returns duration in ms
parseHomepage(html: string): Video[]
parseMS(milliseconds: number)
parsePlaylist(data?: any): Playlist
parseSearchResult(html: string, options?: ParseSearchInterface): (Video | Channel | Playlist)[]
Parse items from html
parseVideo(data?: any): Video
Parse video from raw data
validatePlaylist(url: string): void