亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

Youtube_dl:錯誤:YouTube 說:無法提取視頻數據

Youtube_dl:錯誤:YouTube 說:無法提取視頻數據

千萬里不及你 2023-07-27 13:54:17
我正在使用 Python 3 制作一個小圖形界面,它應該下載一個 youtube 視頻及其 URL。我youtube_dl為此使用了該模塊。這是我的代碼:import youtube_dl # Youtube_dl is used for download the videoydl_opt = {"outtmpl" : "/videos/%(title)s.%(ext)s", "format": "bestaudio/best"} # Here we give some advanced settings. outtmpl is used to define the path of the video that we are going to downloaddef operation(link):    """    Start the download operation    """    try:        with youtube_dl.YoutubeDL(ydl_opt) as yd: # The method YoutubeDL() take one argument which is a dictionary for changing default settings            video = yd.download([link]) # Start the download        result.set("Your video has been downloaded !")    except Exception:        result.set("Sorry, we got an error.")operation("https://youtube.com/watch?v=...")當我執行我的代碼時,出現以下錯誤:ERROR: YouTube said: Unable to extract video data我看到這里是因為沒有找到任何視頻信息,我該如何解決這個問題?
查看完整描述

目前暫無任何回答

  • 0 回答
  • 0 關注
  • 177 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號