Extract automatic captions from YouTube video

前端 未结 4 2170
深忆病人
深忆病人 2020-12-08 01:12

I\'m having problems extracting automatic captions from YouTube videos.

I tried using the http://video.google.com/timedtext?type=track&v=3wszM2SA12E&name=Au

4条回答
  •  温柔的废话
    2020-12-08 02:01

    Here my suggestions after spending some time:

    • Js library: https://github.com/syzer/youtube-captions-scraper => support auto-generated caption.

    • 2 quick methods below not support auto-generated caption

      • Get a list of subtitles: http://video.google.com/timedtext?type=list&v=lT3vGaOLWqE
      • Get subtitle with track id: http://video.google.com/timedtext?type=track&v=lT3vGaOLWqE&id=0&lang=en
    • Quick download: http://downsub.com/?url=https%3A%2F%2Fwww.youtube.com%2Fwatch%3Fv%3Dag_EJRhMfOM

提交回复
热议问题