download-youtube-subtitle python code example
Example 1: how to record youtube cc in python
pip install youtube_transcript_api
Example 2: how to record youtube cc in python
from youtube_transcript_api import YouTubeTranscriptApi
YouTubeTranscriptApi.get_transcript(video_id)