isaacbernat / netflix-to-srt

Rip, extract and convert subtitles to .srt closed captions from .xml/dfxp/ttml and .vtt/WebVTT (e.g. Netflix, YouTube)
MIT License
759 stars 73 forks source link
closed-captioning closed-captions dfxp hacktoberfest netflix python python3 regex srt subrip subtitle subtitles vtt vtt-to-srt webvtt youtube youtube-dl

netflix-to-srt

Method 1

  1. You need one of the following web browsers:
  2. Install Tampermonkey, links below:
  3. Install Netflix - subtitle downloader script for Tampermonkey.
  4. To download the subtitles file from Netflix, open the episode in Netflix and download them by clicking on "Download subs from this episode".netflix

Method 2

You need Google Chrome. not tested on other web browsers

  1. Open devtools. This is usually accomplished by either:
    • Pressing Cmd + Alt + i.
    • Pressing F12.
  2. Go to Network tab within dev tools.
  3. Load your movie/episode.
  4. Select the subtitle you want.
  5. In devtools sort by name and look for a file with ?o= at the beginning of the name (see image below).
Chrome console screenshot

Method 3

The information is extracted from this post.

You need FireFox and AdblockPlus Add-On. not tested on other browsers

YouTube-To-SRT

Clone Repo & Run Files

Why this repository?

VLC player could not reproduce that kind of xml subtitles and I could not find any tool that could easily transform the xml files to a suitable format (e.g. SubRip (.srt)) in Linux or Mac. I got a request for WebVTT (.vtt) and did the same.

TODOs

Note:

In no way I am encouraging any kind of illegal activity. Please know your local laws and ask for written permissions from content owners (e.g. Netflix, YouTube) when necessary.

Contribution

Contributions are always welcome! Feel free to create a Pull Request and add screenshots for each step/method that works best for you. Your help will make this project even better for everyone.