Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

pytube get highest resolution

import pytube
a = '=' * 23

print(f"{a}
33[0;31mBAIXAR VÍDEO DO YOUTUBE33[0;0m
{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
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #pytube #highest #resolution
ADD COMMENT
Topic
Name
9+6 =