1import os
2from pytube import YouTube
3
4yt = YouTube('http://youtube.com/watch?v=9bZkp7q19f0')
5yt.streams.first().download()
6os.rename(yt.streams.first().default_filename, 'new_filename.ext')`
1from pytube import YouTube
2yt = YouTube(link)
3yt.streams.get_highest_resolution().download(path)