Demo:
https://projects.willchou.dev/ramsays-hotones/index.html
To extract text from any youtube video:
Open youtube video.
Inspect network requests.
Enable closed captions.
Copy response and save it
Parse the xml into a json, http://www.utilities-online.info/xmltojson/
Run parse-transcript-json.js