Python extract cc, subtitle, transcript from YouTube video - Py code example

0

Extract transcript using Python 


First you need to install youtube_transcript_api by command below
pip install youtube_transcript_api

Example :

Explanation : 

The example code above is using YouTubeTranscriptApi to grep transcript from YouTube by video id that will get result like image below


then prepare that text from each line to full statement. Finally save the file to txt/text-file.txt
Tags

Post a Comment

0 Comments
* Please Don't Spam Here. All the Comments are Reviewed by Admin.
Post a Comment (0)

Random Posts