closed-captions

Can't download video captions using youtube API v3 in python

狂风中的少年 提交于 2019-11-29 16:21:59
问题 I am trying to download closed captions for this public youtube video (just for testing) https://www.youtube.com/watch?v=Txvud7wPbv4 I am using the code sample(captions.py) below that i got from this link https://developers.google.com/youtube/v3/docs/captions/download I have already stored the client-secrets.json(oauth2 authentification) and youtube-v3-api-captions.json in the same directory (asked in the sample code) I put this code line in cmd : python captions.py --videoid='Txvud7wPbv4' -

Get closed caption “cc” for Youtube video

假装没事ソ 提交于 2019-11-28 21:37:03
Does any one know how to get the CC for any Youtube video that has the caption available? I know on the API 2.0 documentation mentions that it is only available for the owner of the video... but I was able to get some of the video's caption even though I'm not the owner of any.... There are two APIs (or links to API) can be used. they both rout to timpedtext API. before I mention them we should note the parameters the API need. which are: lang: {en, fr,...} required. v: {video ID} required. name : the track name, Required only if it is set. (and with this is my problem.) tlang : translation to

Extract automatic captions from YouTube video

为君一笑 提交于 2019-11-27 18:23:23
I'm having problems extracting automatic captions from YouTube videos. I tried using the http://video.google.com/timedtext?type=track&v=3wszM2SA12E&name=Automatic&lang=en method, but that one only works for those videos, which have named tracks. For example, this one doesn't have any named tracks (only automatic caption) and doesn't load up: rrkrvAUbU9Y There are several web-applications out there which can do it (like http://www.serpsite.com/youtube-subtitles-download-tool/ and http://mo.dbxdb.com/ ), but I need a script, because I want to use it for my research. Anyone has any ideas what is

Get closed caption “cc” for Youtube video

丶灬走出姿态 提交于 2019-11-27 11:46:35
问题 Does any one know how to get the CC for any Youtube video that has the caption available? I know on the API 2.0 documentation mentions that it is only available for the owner of the video... but I was able to get some of the video's caption even though I'm not the owner of any.... There are two APIs (or links to API) can be used. they both rout to timpedtext API. before I mention them we should note the parameters the API need. which are: lang: {en, fr,...} required. v: {video ID} required.

Extract automatic captions from YouTube video

妖精的绣舞 提交于 2019-11-26 22:40:09
问题 I'm having problems extracting automatic captions from YouTube videos. I tried using the http://video.google.com/timedtext?type=track&v=3wszM2SA12E&name=Automatic&lang=en method, but that one only works for those videos, which have named tracks. For example, this one doesn't have any named tracks (only automatic caption) and doesn't load up: rrkrvAUbU9Y There are several web-applications out there which can do it (like http://www.serpsite.com/youtube-subtitles-download-tool/ and http://mo