You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

8 lines
310 B

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)