1 >>> from pytube import YouTube
2 >>> YouTube('https://youtu.be/2lAe1cqCOXo').streams.first().download()
3 >>> yt = YouTube('http://youtube.com/watch?v=2lAe1cqCOXo')
4 >>> yt.streams
5 ... .filter(progressive=True, file_extension='mp4')
6 ... .order_by('resolution')
7 ... .desc()
8 ... .first()
9 ... .download()
10