A Python script to download subtitles (.srt
) from Viki.com.
- Supports both movies and series.
- Download subtitles for a specific episode, a range of episodes, or all.
- Filter subtitles by language.
- Saves
.srt
files to theoutput/
folder.
- Python 3.7+
requests
module (install viapip install requests
)
python viki_subs.py <viki_url> [-e EPISODE] [-l LANGUAGE]
<viki_url>
– URL of the movie or series from Viki (required).-e
,--episode
– Specific episode number or range (e.g.,5
or1-5
). Optional.-l
,--language
– Subtitle language code (e.g.,en
,fr
,all
). Defaults toall
.
Download English subtitles from a movie:
python viki_subs.py "https://www.viki.com/movies/6246c-sunk-into-her" -l en
Download English subtitles for episodes 1 to 3 of a series:
python viki_subs.py "https://www.viki.com/tv/35817c-ashes-of-love" -e 1-3 -l en
Download all available subtitles for all episodes:
python viki_subs.py "https://www.viki.com/tv/35817c-ashes-of-love"
Subtitles are saved in the ./output
folder using the following format:
-
For series:
<Title>.S01E<Number>.<Language>.srt
-
For movies:
<Title>.<Language>.srt
This script is intended for educational and personal use only.