JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
https://pytubefix.readthedocs.io
MIT License
722 stars 100 forks source link

Private videos cannot be downloaded #250

Closed TaiwanSUNA closed 1 month ago

TaiwanSUNA commented 1 month ago

error:aHKmFuu23zo is unavailable

import ssl ssl._create_default_https_context = ssl._create_stdlib_context

from pytubefix import YouTube from pytubefix.cli import on_progress import os os.chdir('C:/Users/Downloads') try: yt = YouTube('https://www.youtube.com/watch?v=aHKmFuu23zo', use_oauth=True, allow_oauth_cache=True, on_progress_callback = on_progress)

yt.streams.filter().get_highest_resolution().download(filename='Harvestella_BGM.mp4')

except Exception as e: print(f"error: {e}")

asil004 commented 1 month ago

the same issue

dkrystki commented 1 month ago

Same here

TaiwanSUNA commented 1 month ago

I found the problem I forgot to check if I updated to the latest version It can be used normally after updating to the latest version.

pip install --upgrade pytubefix