-
Notifications
You must be signed in to change notification settings - Fork 2.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] Key error: "Streamingdata" #1553
Comments
Thank you for contributing to PyTube. Please remember to reference Contributing.md |
I'm getting the same error out of nowhere. Gonna follow this thread. |
I also encountered this problem. My final project is due tomorrow and it affects so heavily:((( |
Use free websites where you can download yt videos instead, for now. |
Which website does the work for now in this case? |
I used it to download YouTube videos (also got title and description information passing into post request body) and then used ffmpeg to slide the video into images. It is hard to download mp4 format and apply the following operations:(. |
it would seem that this is becoming a more and more common of an issue. That said I don't really know if it's local or not as I did experience the issue for a day but the next day everything worked as expected. |
Wow. You are right. Its working fine now....for some reason. |
Same problem here :( |
Same problem downloading audio files. |
Same here |
Same issue here, this doesn't work anymore... return self.vid_info['streamingData'] Fails all the time. Any alternative to pytube? |
I saw someone promote their fork of youtube-dl called yt-dlp but I haven't confirmed if it works (youtube-dl itself doesn't work for downloading youtube videos from my experience. Great for downloading videos from reddit, twitter, facebook and a few others sites though) also I started experiencing the bug more frequently as well. It does work occasionally but I literally have to spam a download button for one of the clicks to result in the video getting downloaded and even then it's usually not in a high resolution. If I had to guess it's something to do with youtube's api |
I am having same problem to download audio as well as video duration (seconds). The problem started on 18 April, intermittently, and in recent hours it because very severe. |
this matches my experience as well (at least I think it does not sure about the exact date) however because it fixed itself for about a week I'd say that this is probably youtube's api having some changes or issues |
Also, having the same problem :C |
same problem |
same problem here |
Same here |
same problem here |
1 similar comment
same problem here |
Following.. facing same problem. |
same problem here. I have my project due tomorrow. Till yesterday it was working fine and now it is not working. |
same problem here |
Same Keyword Error with ['streamData'] here. ` try_again = True
` |
same problem, Pytube [BUG] Key error: "Streamingdata" |
I did a little digging and noticed there was a JSON returned by the api but it included an error message referring to android. Which is strange because I'm on a laptop. So I dug around and made a quick trial change and am having limited success. The change is in innertube.py line 78. I just changed the default client to 'WEB'... class InnerTube:
"""Object for interacting with the innertube API."""
#def __init__(self, client='ANDROID', use_oauth=False, allow_cache=True):
def __init__(self, client='WEB', use_oauth=False, allow_cache=True):
"""Initialize an InnerTube object. Can anyone else confirm that works for them? Some have reported this is intermittent so maybe this is just coincidence.... |
I tried yesterday night and it worked. I wrote a piece about it this morning: |
I also thought that there was a problem with InnerTube, but I don't really understand all this. I changed it to the WEB, it started working, but the download speed leaves much to be desired. |
same problem here |
This works for now but slow, yes. |
In recent hours became almost impossible to download any video or audio. This is smelling some kind of intentional change done by Youtube to disrupt the download of content. |
This worked for me~ Probably the Android API was modifed to an newer version in canny deployment that sure going to be soon deploy in web. |
thank you, thank you, thank you |
I did a test by replacing ANDROID by WEB, as indicated. It works, but seems is triggering a download speed throttle implemented by Youtube 2 or 3 months ago.
|
I did a more extensive testing with
|
Same! |
It does not work for me. |
Hi all! Try this: #1586 (comment) |
For those that are not aware, @felipeucelli developed a fix that is available here: |
fixed it for me, in innertube.py |
same here i dont know what problm lol |
Seems like the current pytube 15.0.0 fixed it 👍 |
Ver 12.1.3
Doesnt download ANY type of youtube videos, not just age restricted,
Cant download: a regular video, a "short" video, nothing.
The text was updated successfully, but these errors were encountered: