youtube-transcript-node
This is a Node.js API which allows you to get the transcripts/subtitles for a given YouTube video. It also works for automatically generated subtitles and supports translating subtitles.
@rolme/ytscript
A CLI tool to download YouTube transcripts and generate summaries