youtube-transcript-api
语音识别这是一个 Python 库,用来获取 YouTube 视频的字幕与文字记录,包括自动生成的字幕,且无需 API key 和 headless browser。最典型的用法是在 CLI 或脚本里传入视频 ID,直接拿到字幕文本,供后续做翻译、摘要或语料处理。
查看 GitHub 原始描述(英文)
This is a python API which allows you to get the transcript/subtitles for a given YouTube video. It also works for automatically generated subtitles and it does not require an API key nor a headless browser, like other selenium based solutions do!
按钮会在新标签页打开,本站不代理、不镜像仓库内容。