I am getting this error HTTP Error 404: Not Found
when I run this code :
from pytube import YouTube
url = input("Paste URL:")
urll = YouTube(url)
choose = input('Choose: 4K , FHD , HD , 480p')
def D4k():
if choose == '4K' :
urll.streams.get_by_itag(313).downlaod()
print(D4k())
I found on internet many solutions like upgrading pytube or installing it again, but I tried that and I am using the latest version of it which is : 10.9.3 . Could anyone help me? and is there a way to stop getting this error even if its resolved.