from youtube_transcript_api import YouTubeTranscriptApi #zh-Hant url = "https://www.youtube.com/watch?v=YbVger_nh-s" list = YouTubeTranscriptApi.list_transcripts("_i5CoY_LMYs") # videoSrt = YouTubeTranscriptApi.get_transcript( # "gXeNXJrD-gw", languages=['zh-TW']) print(list) # print(videoSrt)