Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Python から YouTube ビデオをダウンロードしようとすると、このエラーが発生しますAttributeError: 'YouTube' object has no attribute 'get_videos'。
AttributeError: 'YouTube' object has no attribute 'get_videos'
最後の行でエラーが発生します。
import pytube link = "" yt = pytube.YouTube(link) videos = yt.get_videos()
ありがとう!
from pytube import YouTube yt = YouTube("Please copy and paste the video link here") print(yt.title) stream = yt.streams.first() stream.download()