pytube get highest resolution

34

import pytube
a = '=' * 23

print(f"{a}\n\033[0;31mBAIXAR VÍDEO DO YOUTUBE\033[0;0m\n{a}")

video = pytube.YouTube(input('Digite a URL do vídeo: '))
resolucoes = video.streams.all()

for i in resolucoes:  # mostra as resoluções disponíveis
    print(i)

video.streams.get_by_itag(137).download("D:\Downloads YouTube")  # salva na pasta

Comments

Submit
0 Comments