-
-
Notifications
You must be signed in to change notification settings - Fork 318
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]: 403 error forbidden #92
Comments
Yeah, this is most likely related to CloudFlare captchas. There's nothing I can do right now, but I'm going to be trying a few things. Are you trying to download a course from a subscription plan? |
Yes i paid for the course i just need it offline |
No, I mean Udemy Pro/Personal plans |
Mine is a regular Udemy Marketplace course purchase |
Also on my physical machine the course downloads are not complete some videos still didn't download |
I recommend giving the |
In regards to this try zyte proxy seems to work well witj cloudflare |
Ok will try that now |
nope, just the bearer token. cookies are only needed for subscription plans |
it changes for each course |
So every course has its own different key? |
yes, usually its every video but udemy decided to do every course |
Ok thanks will generate again thanks Thank God is it not every video 🤣 |
Its working fine now |
I am downloading using the personal plan ,is there any work around of this 403 forbidden error? |
I'm working on rewriting the way personal plan works that seems to bypass the captchas, but theres nothing that i know of that you can do until i can finish this update. I have to rewrite a good portion of the code to use browser automation |
If you need the personal plan subscription account I can share it with you ,if it helps in the process |
Thank you for the offer, someone else already lent me one :) I have published an experimental branch that should bypass cloudflare captchas: https://github.com/Puyodead1/udemy-downloader/tree/feat-selenium There's new requirements so be sure to Edit: Forgot to mention you will also need to specify |
Thank you,I will try it today and let you know if I ran into some problem. |
I tried it and it works 😍,but I had to add the bearer token , username and password while the time of execution ,adding the bearer token, username and password in config.toml file but while executing it ,it ask again for all this ,it is the only problem I faced but everything is fine . Edit |
And yes The captions are also not downloading ,assets are downloading fine but captions are not downloading Edit |
Everything is working fine but the captions are still not working I had disabled the download-captions and download-assets and keep-vtt by including # infront of them ,I simply use main.py -c 'courselink' -sc --download-captions --download-assets but still captions are not downloading and assets are downloading fine , |
I just updated the selenium branch to include the fix for this from master |
I am getting this error now |
I'm going to assume this is because the course is "large", which i haven't implement support for yet. Do you know how many hours the course is? |
It is 2.5 hours course ,name of the course is How to Draw Cute Cartoon Characters. |
Ah, I see the issue. There's an invalid utf-8 character. I'll have to add sanitation to the strings. |
So ,have you fixed this issue? |
No, I was sleeping. I'll fix it in a little bit |
Could you check something on your system for me please? Open a python terminal (should be able to search for python in the windows search and open import sys
import locale
sys.getfilesystemencoding()
locale.getpreferredencoding() This will output your systems encoding, which may be set to the wrong thing. |
Hm, okay. This error is caused by the path length being too long, I recommend moving the As far as the other course, I might need an account to test with as I'm not 100% sure where the problem actually comes from, if you're willing to provide an account, you can email me at puyodead@protonmail.com |
Please read my email |
I have sent you the account credentials |
I've tested the draw-cute-characters course and its downloading without issue. Please update the the latest version of the selenium branch and try it |
I am having some issue with decryption ,some of the files are not decrypting property |
the feat-shaka branch has now been deleted, and shaka-packager is now in the master branch, there is also some bug fixes that address issues with decryption on some files that contain commas in the filename resulting in decryption failure. The master branch also includes much better debug logging now to print the output from the external programs to find errors easier. |
My subscription was over so I didn't got a chance to try it ,I will make a new account and try it . Thanks |
Guess now I can't download any course as the method I was relying on to get the keys is patched 😪 |
bro can you help me to find Decryption Key ID Decryption Key |
No i don't want to go to prison |
What happened?
I tried to run your script on my vps but kept getting 403 error
I used exactly same script on my physical machine it worked fine
I copied the folder to my vps am getting error
Am running an Ubuntu 20.04 with any graphical interface
Expected Result
To run without error
Branch
master/main
What operating systems are you seeing the problem on?
Linux/Unix
Relevant log output
No response
Other information
No response
The text was updated successfully, but these errors were encountered: