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
.srtfiles to theoutput/folder.
- Python 3.7+
requestsmodule (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.,5or1-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 enDownload 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 enDownload 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.