1.安装pytube库 pip install pytube 2.设置 为全局模式 3.使用如下代码进行下载: from pytube import YouTube URL=input("请输入要下载的URL:") path=r'E:/upload' yt=YouTube(URL) yt.streams.filter(progressive=True) stream = yt.streams.get_by_itag(22) stream.download(path)
使用Python pytube库下载YouTube视频
于 2023-07-19 01:34:19 首次发布