-
Notifications
You must be signed in to change notification settings - Fork 641
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
Edx http error 403: Forbidden #669
Comments
It didn't worked |
Similar issue at my side urllib.error.HTTPError: HTTP Error 403: Forbidden |
Getting the same issue with the change in the URL. I'm trying to dl https://learning.edx.org/course/course-v1:USMx+ENCE607.4x+1T2021/home |
I can't download the course because I get http error 403: Forbidden. Environment: Steps to reproduce:
|
It seems that the 403 is caused by the user agent being sent with the HTTP requests. If I change it to something realistic (like Mozilla/5.0 (X11; Linux x86_64; rv:83.0) Gecko/20100101 Firefox/83.0) the error goes away. So edX is actively trying to block this program. However I'm running into #670 after the change, so downloading videos doesn't work yet. |
I managed getting rid of this error by substituting 'User-Agent': 'edX-downloader/0.01' by 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/88.0.4324.190 Safari/537.36' on the header from edx_dl.py located in Python37\Lib\site-packages\edx_dl\edx_dl.py (line 425) The script created the folders as expected, but there are no files inside any of them, though. It appears to be the same error from Issue #670. Did anyone find a solution? |
following: same error for MITx' 6.86x |
Same error |
Checkout this project: https://github.com/rehmatworks/edx-downloader He put a cool feature, take a random user agent from a list https://fake-useragent.herokuapp.com/browsers/0.1.11 Kind regards |
🚨Please review the Troubleshooting section
before reporting any issue. Don't forget also to check the current issues to
avoid duplicates.
Subject of the issue
Describe your issue here.
Your environment
Steps to reproduce
Tell us how to reproduce this issue. Please provide us the course URL, and the
specific subsection or unit if possible.
https://courses.edx.org/courses/course-v1:MITx+6.00.1x+1T2021/course/
Expected behaviour
Tell us what should happen.
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 403: Forbidden
Actual behaviour
Tell us what happens instead. If the script fails, please copy the entire
output of the command or the stacktrace (don't forget to obfuscate your
username and password). If you cannot copy the exception, attach a screenshot.
The text was updated successfully, but these errors were encountered: