raffaem / cs-dlp

Script for downloading Coursera.org videos and naming them.
GNU Lesser General Public License v3.0
327 stars 50 forks source link

"Error 403 Client Error" when attempting to download quizzes #8

Open FuriousGamer1356 opened 1 year ago

FuriousGamer1356 commented 1 year ago

When I run the command cs-dlp --cauth-auto firefox --subtitle-language en --download-quizzes algebra-i, the course videos and subtitles download just fine, but when the program tries downloading the exams/quizzes, it prints Error 403 Client Error. Am I missing something? My laptop is running Debian sid.

$ cs-dlp --cauth-auto firefox --subtitle-language en --download-quizzes algebra-i
coursera_dl version 0.12.0b0
Downloading class: algebra-i (1 / 1)
Parsing syllabus of on-demand course (id=TWNon2r-Eeumww4A4k-nvw). This may take some time, please be patient ...
Processing module  module-1-the-structure-of-numbers
Processing section     lesson-1-real-numbers
Processing lecture         real-numbers (lecture)
Processing lecture         notes-common-sets-of-numbers (supplement)
Processing lecture         sample-problems-real-numbers (supplement)
Processing lecture         structure-of-numbers (exam)
Error 403 Client Error: Forbidden for url: https://api.coursera.org/api/onDemandExamSessions.v1 getting page https://api.coursera.org/api/onDemandExamSessions.v1
The server replied: {"errorCode":"Not Authorized","message":null,"details":null}
Could not download exam eQuAo: 403 Client Error: Forbidden for url: https://api.coursera.org/api/onDemandExamSessions.v1
Processing section     lesson-2-properties-of-real-numbers
Processing lecture         properties-of-real-numbers (lecture)
Processing lecture         notes-operations (supplement)
Processing lecture         notes-working-with-fractions (supplement)
Processing lecture         sample-problems-properties-of-real-numbers (supplement)
Processing lecture         properties-of-real-numbers (exam)
Error 403 Client Error: Forbidden for url: https://api.coursera.org/api/onDemandExamSessions.v1 getting page https://api.coursera.org/api/onDemandExamSessions.v1
The server replied: {"errorCode":"Not Authorized","message":null,"details":null}
Could not download exam pQm5a: 403 Client Error: Forbidden for url: https://api.coursera.org/api/onDemandExamSessions.v1
Processing module  module-2-linear-equations
Processing section     lesson-1-linear-equations-in-one-variable
...
$
fbuchinger commented 11 months ago

Same for me using the command line cs-dlp --cauth-auto chrome "marketing-management-two"