Created
March 20, 2020 00:58
-
-
Save liddiard/bc0a86baa89bc6c84201d58ab380e344 to your computer and use it in GitHub Desktop.
Extract subtitles from a YouTube video API response (https://www.youtube.com/api/timedtext)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const subtitles = {} // replace with subtitles content | |
subtitles.events.map(ev => ev.segs[0].utf8.replace('\n', ' ')).join(' ') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment