Skip to content

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

Notifications You must be signed in to change notification settings

nuhman/yt-timedtext-srt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published