Install gcap by entering the following commands in the terminal:
sudo apt update sudo apt install gcap
Description:
YouTube closed caption retriever
gcap is a command line tool for retrieving YouTube closed captions. The retrieved closed captions are saved in SubRip (srt) file format.
Homepage: http://code.google.com/p/gcap/
Version: 0.1.1-1
Section: universe/web