coursera-dl / edx-dl

A simple tool to download video lectures from edx.org (and other openedx sites)
GNU Lesser General Public License v3.0
1.93k stars 641 forks source link

Enable downloading registered courses not in --list-courses (eg. MIT PE) #398

Open jcontini opened 8 years ago

jcontini commented 8 years ago

Subject of the issue

MIT has online classes powered by edX starting with "https://mitprofessionalx.mit.edu/", and I confirmed it's possible to access the course by substituting that URL base with "https://courses.edx.org/". The particular course I'm trying to download is https://courses.edx.org/courses/course-v1:MITProfessionalX+DSx+2016_T1, which I can access on the web fine like any standard edX course. The difference is, it's not listed on my edX dashboard since we're expected to go through https://mitprofessionalx.mit.edu/. So it also does not show up in --list-courses, even though the direct link is accessible on the web.

I've signed up and paid for the course though and would love to have the video modules available offline.

Your environment

edx-dl -u ***@gmail.com https://courses.edx.org/courses/course-v1:MITProfessionalX+DSx+2016_T1

Expected behaviour

The course should download as it's accessible via the web authenticated, even if it is not listed on /dashboard.

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.

edx-dl -u ***@gmail.com https://courses.edx.org/courses/course-v1:MITProfessionalX+DSx+2016_T1 edx_dl version 0.1.2 Password: Building initial headers for future requests. Getting initial CSRF token. Found CSRF token. Logging into Open edX site: https://courses.edx.org/login_ajax Extracting course information from dashboard. You have not passed a valid course url, check the correct url with --list-courses

iemejia commented 7 years ago

Did you try with the params -x mitprox ?