Python初學特訓班pytube問題
王 更新時間:2023/9/16 上午 08:13:13
您好from pytube import YouTubeyt = YouTube('https://www.youtube.com/embed/0CF-qL_DOSY?list=PL01H6xsiCz5N5oJ9hCIjLneZbviDugDOi')print(f'開始下載{yt.title}')yt.streams.first().download()print('下載完成')但pytube.exceptions.AgeRestrictedError: 0CF-qL_DOSY is age restricted, and can't be accessed without logging in.麻煩您了謝謝
文淵閣工作室 更新時間:2023/9/18 上午 09:41:11
您好, 您的影片有下載限制是年齡區分, 所以要登入才能下載這類影片本來就不適合Pytube下載
王 更新時間:2023/10/1 上午 07:44:15
然print(yt.age_restricted)為False
回主畫面