抓取youtube视频
作者:互联网
import subprocess url = "https://www.youtube.com/watch?v=" + video_id subprocess.call(['yt-dlp', '-f', "best*[vcodec!=none][acodec!=none]", '--merge-output-format', 'mp4', url, '-P', r'F:\youtube\videos', '-o', video_id + '.mp4'], )
具体用法参考 https://blog.csdn.net/z_y_z_l/article/details/121015231
标签:视频,youtube,抓取,subprocess,mp4,video,https,id 来源: https://www.cnblogs.com/lvye001/p/16410017.html