0%

python调用youtube_dl常用参数

ydl_opts

1
2
3
4
5
6
7
8
9
def down(data,name):
ydl_opts = {
'nooverwrites': True,
'ignoreerrors': True,
'retries': True,
'outtmpl': name,
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download([data])