Skip to content
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

HTTP ERROR 403 #34

Open
khaouitiabdelhakim opened this issue Jun 24, 2024 · 12 comments
Open

HTTP ERROR 403 #34

khaouitiabdelhakim opened this issue Jun 24, 2024 · 12 comments

Comments

@khaouitiabdelhakim
Copy link

Access to rr2---sn-f5o5-jhod.googlevideo.com was deniedYou don't have authorization to view this page.
HTTP ERROR 403

@elvismdev
Copy link

Same here.

@khaouitiabdelhakim Were you able to find why?

@khaouitiabdelhakim
Copy link
Author

Hey @elvismdev I have had a same library https://github.com/khaouitiabdelhakim/Get-YouTube-Stream-Urls-JS that uses almost the same logic but it stops working just the 5 passed days due to 403 error. I do not know why because every thing is great until the passed 5 days hhh.

@khaouitiabdelhakim
Copy link
Author

But I have today found a great other way to do it, and I'm testing it on my android streaming app https://play.google.com/store/apps/details?id=com.abdelhakim.faborfy, that you can check out @elvismdev.

the idea is that youtube has many client types and version like ANDROID, WEB_REMIX ... DESKTOP and more.
so I try to try the same logic of that library on all of them, it works for some videos but not for all;

You can check this method (by the way the solution I'm talking about is in Kotlin; I use it in my android Faborf app)

@khaouitiabdelhakim
Copy link
Author

@elvismdev check this https://github.com/khaouitiabdelhakim/Get-YouTube-Stream-Urls-JS it is more expressive, but Until now I could not figure out the reason of 403 error
Here all the possbile problems that can be a cause that I tried to use but they do not same to be the cause
1- The youtube player uses a custom player with a custom timestamp so the ciphering method got from the base.js must be compatible with the version of the player: I tried to get urls and base.js of the same version but it did not work.
2- I thought that the problem was due to the rate limit or malicious activity detected by youtube so I tried to use a vpn; request using the vpn and cipher using the same ip address but it did not work;
3- Hope someone fix it because this problem is so FRESH
4- Meanwhile @elvismdev check this out https://tyrrrz.me/blog/reverse-engineering-youtube-revisited it is so good to unserdtand how all these libraires work;

@magickaito
Copy link

Facing same 403 error for the last few days. @khaouitiabdelhakim @elvismdev any solutions so far?

@dangdungcntt
Copy link
Owner

I will try to resolve this issue this weekend.

@Lichenwei-Dev
Copy link

I will try to resolve this issue this weekend.

I also have the problem

@khaouitiabdelhakim
Copy link
Author

Have any one find a solution @dangdungcntt ?

@dangdungcntt
Copy link
Owner

I found a solution from node-ytdl-core fent/node-ytdl-core#1289 (comment)

@khaouitiabdelhakim
Copy link
Author

so bro @dangdungcntt could you fix it?

@dangdungcntt
Copy link
Owner

@khaouitiabdelhakim You can use the solution I mentioned above since it is simpler than my current approach. Therefore, I have no plans to update my package."

@konsumer
Copy link

konsumer commented Jul 13, 2024

Yeh, it just gets the data, but it's very simple, has no-deps, and works in lots of environments (like CF workers.) @distube/ytdl-core uses this method.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants