from pytube import YouTube
# Enter the URL of the video you want to download
url = "https://www.youtube.com/watch?v=dQw4w9WgXcQ"
# Create a YouTube object with the video URL
video = YouTube(url)
# Get the highest resolution video stream
stream = video.streams.get_highest_resolution()
# Download the video
stream.download()
0 Comments