Skip to content

Latest commit

 

History

History
21 lines (14 loc) · 1.71 KB

README.md

File metadata and controls

21 lines (14 loc) · 1.71 KB

yt-timedtext-to-srt

convert and download youtube timedtext json (subtitles/captions) to srt file

Steps to download captions including auto-generated captions from youtube as a SRT file:

  • Get the timedtext for the youtube video

    • Open the youtube video and right click -> choose inspect
    • Select the network tab
    • Play the video & toggle ON the CC button (or go to video settings and choose the subtitles)
    • Try filtering for timedtext in the network tab
    • Open the timedtext in a new tab & right click -> save file

    Screenshot

  • Once you have the timedtext.json file downloaded, Go to https://nuhman.github.io/yt-timedtext-srt/ and upload the file

  • After the file is processed, SRT file will be downloaded to your local machine

Tip: In the timedtext URL add a new URL query parameter tlang with language code (eg.: es, ml, ko etc.) as the value into which you want the CC to be translated to.
Sample URL looks like this (may be expired by now). Change tlang parameter to ml for example to convert CC into 'Malayalam' language.