title: Extract automatic captions from YouTube video
body: <p>I'm having problems extracting automatic captions from YouTube videos. </p>
  
  <p>I tried using the <a href="http://video.google.com/timedtext?type=track&amp;v=3wszM2SA12E&amp;name=Automatic&amp;lang=en" rel="noreferrer">http://video.google.com/timedtext?type=track&amp;v=3wszM2SA12E&amp;name=Automatic&amp;lang=en</a> 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</p>
  
  <p>There are several web-applications out there which can do it (like <a href="http://www.serpsite.com/youtube-subtitles-download-tool/" rel="noreferrer">http://www.serpsite.com/youtube-subtitles-download-tool/</a> and <a href="http://mo.dbxdb.com/" rel="noreferrer">http://mo.dbxdb.com/</a>), but I need a script, because I want to use it for my research.</p>
  
  <p>Anyone has any ideas what is the correct way to get this? YouTube's API has something about captions, but only for registered users, while the apps above work for all videos and I doubt they just capture the html code from the page (although that's possible too). There must be a way... please help! </p>