From 5129f09f59e733b4d543b5978a57776cd6a4e45e Mon Sep 17 00:00:00 2001 From: "B.Hariprasad" Date: Sat, 9 Oct 2021 22:43:11 +0530 Subject: [PATCH] python3 script for downloading subtitles from youtube video --- subtitle_downloader/README.md | 27 ++++++++++++++++++++++ subtitle_downloader/requirements.txt | 1 + subtitle_downloader/subtitle_downloader.py | 18 +++++++++++++++ 3 files changed, 46 insertions(+) create mode 100644 subtitle_downloader/README.md create mode 100644 subtitle_downloader/requirements.txt create mode 100644 subtitle_downloader/subtitle_downloader.py diff --git a/subtitle_downloader/README.md b/subtitle_downloader/README.md new file mode 100644 index 000000000..cffc32fd8 --- /dev/null +++ b/subtitle_downloader/README.md @@ -0,0 +1,27 @@ +# Subtitle Downloader +``` +This folder contains a python3 script to download subtitles from youtube videos, provided that they have subtitles. +``` + +# Requirements +1. youtube_transcript_api + +``` +pip install youtube_transcript_api +``` +

or

+ +``` +pip install -r requirements.txt +``` + +# How this script works +* Just execute the subtitle_downloader.py file with the youtube video link as a command line argument + +``` +python subtitle_downloader.py