coursera-dl
coursera-dl copied to clipboard
Error 403 Client Error: Forbidden for url: https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled getting page https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled The server replied: {"errorCode":"Not Authorized","message":null,"details":null} HTTPError 403 Client Error: Forbidden for url: https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled
https://github.com/coursera-dl/coursera-dl/issues/800#issuecomment-870953541
Here is a fix to this issue but I could not really understand it as I am not good tech person..
Subject of the issue
Describe your issue here.
Your environment
- Operating System (name/version):
- Python version:
- coursera-dl version:
Steps to reproduce
Tell us how to reproduce this issue, please don't forget to include enough information so that you can help us help you:
- Is the problem happening with the latest version of the script?
- Do you have all the recommended versions of the modules? See them in the
file
requirements.txt
. - What is the course that you are trying to access?
- cryptography I
- What is the precise command line that you are using (don't forget to obfuscate your username and password, but leave all other information untouched). coursera-dl crypto
- What are the precise messages that you get?
Error 403 Client Error: Forbidden for url: https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled getting page https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled The server replied: {"errorCode":"Not Authorized","message":null,"details":null} HTTPError 403 Client Error: Forbidden for url: https://api.coursera.org/api/memberships.v1?includes=courseId,courses.v1&q=me&showHidden=true&filter=current,preEnrolled
Expected behaviour
Cryptography I course should be downloaded.
Actual behaviour
Error message shown above occurs.
I had the same error. What I did was to copy the cauth value again and change it in the coursera-dl.conf file and with that I could download my course. I think this value changes constantly as it was different from the one I previously used to download another course.
I've been getting the cauth value this way (using Microsoft Edge, I don't know if it is diferent in other browsers):
- Log into your coursera account
- While being on the dashboard right click and choose Inspect
- Go to the Aplications tab
- Click the https://www.coursera.org/ option under the Cookies section
- Write Cauth in the search tab
- Copy the cauth value
I've tried this, but it's still not working after using Cauth value.
same here. Worked fine for some courses, doesn't on a lot of them
same here.