Skip to content

parseYoutubeCaptionTracks ​

Import from: @xbbg/xnews, @xbbg/xnews/parsers

parseYoutubeCaptionTracks(body): YoutubeCaptionTrack[]

Defined in: src/sources/youtubetranscript.ts (declaration: sources/youtubetranscript.d.ts:50)

Reads the caption track list out of watch-page HTML or player-response JSON.

Parameters ​

body ​

string

Returns ​

YoutubeCaptionTrack[]

Last updated:

xbbg is independent open-source software and is not affiliated with, endorsed by, sponsored by, or approved by Bloomberg Finance L.P.