import pytube # Get the video URL video_url = input("Enter the YouTube video URL: ") # Create a YouTube object yt = pytube.YouTube(video_url) # Get the highest resolution video stream video = yt.streams.get_highest_resolution() # Download the video video.download() print("Video downloaded successfully!")

Comments