text_plain_output_1.png
import pytube

import pytube
url = 'https://www.youtube.com/watch?v=dQw4w9WgXcQ'
youtube = pytube.YouTube(url)
video = youtube.streams.filter(progressive=True, file_extension='mp4').order_by('resolution').desc().first()
video.download()