Код: Выделить всё
from pytube import YouTube
link = input("Enter YouTube Link: ")
print("Downloading...")
yt = YouTube(link)
yt.streams.get_highest_resolution().download()
print("Video Downloaded Succesfully")
Подробнее здесь: https://stackoverflow.com/questions/788 ... -in-python