【发布时间】:2017-09-04 02:44:51
【问题描述】:
好的,我知道要在你使用的 python 程序中从 Youtube-DL 获取 Mp3 文件
from __future__ import unicode_literals
import youtube_dl
ydl_opts = {
'format': 'bestaudio/best',
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}],
}
with youtube_dl.YoutubeDL(ydl_opts) as ydl:
ydl.download(['http://www.youtube.com/watch?v=BaW_jenozKc'])
我已经让它工作没问题。我的问题是我无法让 -a 或 --batch 文件 FILE 使用它我试图设置一个文件系统但这只是随机猜测,并且自述文件中的信息缺少嵌入。
是否可以使用 Python 程序从 txt 文件中下载 youtube 视频,或者使用解释嵌入的在线资源
【问题讨论】:
标签: python youtube python-embedding