JuanBindez / pytubefix

Python3 library for downloading YouTube Videos.
http://pytubefix.rtfd.io/
MIT License
454 stars 67 forks source link

Getting request error #203

Closed viper7BG closed 1 week ago

viper7BG commented 2 weeks ago

:exclamation: DO NOT REMOVE OR SKIP THE ISSUE TEMPLATE :exclamation:

lack of information will lead to closure of the issue


Describe the bug Im getting an error while trying to download any kind of youtube videos

ERROR: This request has been detected as a bot, please try again or log in to view


code that was used that resulted in the bug

from pytubefix import YouTube
from pytubefix.cli import on_progress

url = "https://youtu.be/JNHUHaUwk-M?si=gWCyQRuW1A_rhEub"

yt = YouTube(url, on_progress_callback = on_progress)
print(yt.title)

ys = yt.streams.get_highest_resolution()
ys.download()

Expected behavior A clear and concise description of what you expected to happen.


Screenshots https://prnt.sc/ektTNmSmOW1Q


Desktop (please complete the following information):


Additional context Add any other context about the problem here.

JuanBindez commented 2 weeks ago

see #170