This can be used to download transcripts of YouTube videos from YouTube for videos which has transcripts uploaded by the channel as well as the ones auto-generated by YouTube.
- youtube-dl
- Beautiful Soup
import YouTubeTranscript
yt = YouTubeTranscript.get_transcript("https://www.youtube.com/watch?v=8CrOL-ydFMI")