2020 年 7 月 27 日星期一,我正在完美地运行 pytube 模块,但一天后它的代码不再起作用。显示的值太多,无法解压(预期为 2)
from pytube import YouTube
url = input ("Entry url : ")
yt = YouTube(url)
captions = yt.captions.get_by_language_code('en')
all = captions.generate_srt_captions()
print(all)
Run Code Online (Sandbox Code Playgroud)
有人知道吗?或者像这样的其他模块来提取 YouTube 字幕?