Get closed caption “cc” for Youtube video

假装没事ソ 提交于 2019-11-28 21:37:03

Your first example should work without the name= part. This did the job for me:

video.google.com/timedtext?lang={languageID}&v={videoId}

To fetch the english CC version from the previous answer, it would look like this:

http://video.google.com/timedtext?lang=en&v=zzfCVBSsvqA
a.ch.

You can get the list of available captions with http://video.google.com/timedtext?type=list&v=zzfCVBSsvqA request.

Your 3rd video has only automatically generated captions, which you cannot fetch easily.

Here my suggestions after spending some time:

If video.google.com does not fetch your closed caption file OR you don't want your file in XML format, but would rather SRT (see note below), try:

CC SUBS

NOTE: SRT can be transformed into virtually ANY format - either using free subtitling tools OR by replacing \n\n with |, \n with ; and then | into \n, you get a CSV file that can be opened in a spreadsheet, for example.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!