All Projects → isaacbernat → Netflix To Srt

isaacbernat / Netflix To Srt

Licence: mit
Rip, extract and convert subtitles to .srt closed captions from .xml/dfxp/ttml and .vtt/WebVTT (e.g. Netflix, YouTube)

Programming Languages

python
139335 projects - #7 most used programming language
python3
1442 projects

Projects that are alternatives of or similar to Netflix To Srt

Srt
A simple library for parsing, modifying, and composing SRT files.
Stars: ✭ 210 (-45.74%)
Mutual labels:  srt, subtitles, subtitle
Youtube Transcript Api
This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require a headless browser, like other selenium based solutions do!
Stars: ✭ 495 (+27.91%)
Mutual labels:  subtitles, subtitle, youtube
Ffsubsync
Automagically synchronize subtitles with video.
Stars: ✭ 5,167 (+1235.14%)
Mutual labels:  srt, subtitles, subtitle
Subtitle.js
Stream-based library for parsing and manipulating subtitle files
Stars: ✭ 234 (-39.53%)
Mutual labels:  srt, subtitles, subtitle
Dualsub Support
General purpose subtitle renderer
Stars: ✭ 163 (-57.88%)
Mutual labels:  netflix, subtitle, youtube
ttml2srt
Convert TTML subtitles used by Netflix, HBO, CMore and others to SRT format
Stars: ✭ 51 (-86.82%)
Mutual labels:  subtitles, netflix, srt
Ablemusicplayer
🎵 A Youtube Music like app with a Spotify like design - ad free and open source. Feel free to PR. NOTE: BEING REWRITTEN, HENCE THE REPO WILL BE INACTIVE FOR A WHILE
Stars: ✭ 167 (-56.85%)
Mutual labels:  hacktoberfest, youtube-dl, youtube
pysub-parser
Library for extracting text and timestamps from multiple subtitle files (.ass, .ssa, .srt, .sub, .txt).
Stars: ✭ 40 (-89.66%)
Mutual labels:  subtitles, subtitle, srt
ytqck.github.io
YouTube quick ⚡ Search and Download Music for Free.
Stars: ✭ 18 (-95.35%)
Mutual labels:  youtube, youtube-dl
podpodge
Convert YouTube playlists to audio-only RSS feeds for podcast apps to consume.
Stars: ✭ 32 (-91.73%)
Mutual labels:  youtube, youtube-dl
Pantheon
The fastest YouTube downloader.
Stars: ✭ 32 (-91.73%)
Mutual labels:  youtube, youtube-dl
download audioset
📁 This repo makes it easy to download the raw audio files from AudioSet (32.45 GB, 632 classes).
Stars: ✭ 53 (-86.3%)
Mutual labels:  youtube, youtube-dl
YouTube-Downloader
An easy-to-use, YouTube video downloader, without pesky ads or malware.
Stars: ✭ 22 (-94.32%)
Mutual labels:  youtube, youtube-dl
mpv-youtube-download
A userscript for MPV that allows you to download youtube audio and video with one key press 💾
Stars: ✭ 16 (-95.87%)
Mutual labels:  youtube, youtube-dl
chromecast-api
📺 Chromecast Node.js module
Stars: ✭ 122 (-68.48%)
Mutual labels:  subtitles, subtitle
ypc
Convert text/spotify/deezer albums/playlists to youtube urls and audio/video files.
Stars: ✭ 17 (-95.61%)
Mutual labels:  youtube, youtube-dl
spongebob-cli
Watch classic spongebob from the terminal!
Stars: ✭ 179 (-53.75%)
Mutual labels:  youtube, youtube-dl
nekocap
Browser extension for creating & uploading community captions for YouTube, niconico and other video sharing sites.
Stars: ✭ 27 (-93.02%)
Mutual labels:  subtitles, subtitle
SharpGrabber
Download from YouTube, Vimeo, PornHub, HLS (M3U8 files) with .NET and JavaScript, Library and desktop app for downloading high quality media
Stars: ✭ 138 (-64.34%)
Mutual labels:  youtube, youtube-dl
Fvid
fvid is a project that aims to encode any file as a video using 1-bit color images to survive compression algorithms for data retrieval.
Stars: ✭ 276 (-28.68%)
Mutual labels:  hacktoberfest, youtube

netflix-to-srt

  1. Get the subtitles from Netflix (.xml dfxp or .vtt files), YouTube or other sources.
  2. Convert them into .srt

Get the subtitles:

From Netflix: method 1

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

From Netflix: method 2

The information is extracted from this post.

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

  • Start Netflix and your movie/episode (stream is active!)
  • Start AdblockPlus, open blockable items
  • Search: dfxp (e.g. >> #.nflximg.com/#/#/########.dfxp?v=1&e=#########&t=######_#####&random=1234567890)
  • open the dfxp in a new window
  • Save as

From YouTube

  • Install youtube-dl (available for Windows, Mac and Linux)
  • Download subs from the YouTube URL you like e.g. youtube-dl --all-subs "https://www.youtube.com/watch?v=VHNfvFOBC0A"
  • Subtitles should be downloaded in the same folder were the command was ran. E.g. NameOfTheVideo VHNfvFOBC0A.ca.vtt, NameOfTheVideo VHNfvFOBC0A.tlh.vtt
  • If you are missing a language, check that it's actually available. E.g. youtube-dl --list-subs "https://www.youtube.com/watch?v=VHNfvFOBC0A"

Convert them into .srt

  • Get python (tested under python 2.7, 3.3 and newer). If you have mac or linux you may skip this step
  • Clone this repository or download to_srt.py
  • Run the script in the terminal (type python to_srt.py from the terminal on the folder you have to_srt.py)
    • Copy your subtitle files in the same directory as to_srt.py
      • Or use -i INPUT_PATH and -o OUTPUT_PATH for custom file locations
    • All .xml and .vtt files in the input directory will generate a converted .srt file on the output one
  • Enjoy! (And star the repo if you liked it ;D)

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

  • More robust file parsing than just some quick and dirty regexes
  • Javascript/web version so this can be done entirely through a browser
  • Real tests. The way to "test" it now is by running python to_srt.py -i samples -o samples from the the project's root directory and check the .srt results (or python3 to_srt.py -i samples -o samples).
  • Create a pip package for this

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.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].