- Get the subtitles from netflix
- Convert them into .srt
You need Google Chrome. not tested on other web browsers
- Open devtools. This is usually accomplished by either:
- Pressing
Cmd
+Alt
+i
. - Pressing
F12
.
- Pressing
- Go to Network tab within dev tools.
- Load your movie/episode.
- Select the subtitle you want.
- In devtools sort by name and look for a file with
?o=
at the beginning of the name (see image below).
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
- Get python (tested under both 2.7 and 3.3). 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 (
python to_srt.py
)- Input and output directories default to the same directory
to_srt.py
is run - Use
-i INPUT_PATH
and-o OUTPUT_PATH
for custom file locations - All
.xml
files in the input directory will generate a converted.srt
file on the output one
- Input and output directories default to the same directory
- Enjoy!
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. .srt
) in linux or mac.
- More robust file parsing than just some quick and dirty regexes
- Javascript/web version so this can be done entirely through a browser
- Tests (not just the "sample" files)
- Create a pip package for this
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) when necessary.