import pytube from pytube import YouTube print("Give URL:") url = input() pytube.YouTube(url).streams.get_highest_resolution().download()