我正在尝试使用此脚本使用 Python 下载 YouTube 视频。
目前我使用它如下
youtube-dl "http://www.youtube.com/watch?v=dvsdgyuv"
在他们写的文档中,我可以使用这些
id: The sequence will be replaced by the video identifier.
url: The sequence will be replaced by the video URL.
uploader: The sequence will be replaced by the nickname of the person who uploaded the video.
upload_date: The sequence will be replaced by the upload date in YYYYMMDD format.
title: The sequence will be replaced by the literal video title.
stitle: The sequence will be replaced by a simplified video title, restricted to alphanumeric characters and dashes.
ext: The sequence will be replaced by the appropriate extension (like flv or mp4).
epoch: The sequence will be replaced by the Unix epoch when creating the file.
autonumber: The sequence will be replaced by a five-digit number that will be increased with each download, starting at zero.`enter code here`
他们还没有写我如何使用它。
如何使用使视频文件名与标题相同?
他们告诉使用它,但我不知道如何在命令行上使用它。
%(title)s-%(id)s.%(ext)s.