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 640 forks source link

Support for paid course powered by OpenedX #618

Open mongoliablossom opened 4 years ago

mongoliablossom commented 4 years ago

🚨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

I would like to download a course that is powered by edX but not available via the default https://courses.edx.org . It is a paid course, I access it via this url: https://learning.mindsatwork.com/dashboard. Could I simply change the login site somewhere in the code (I imagine the rest might still work since it is an edX course?)

Please note, I am not a developer. So I can only follow your instructions but have no clue.

Your environment

Steps to reproduce

I tried edx-dl -u (myusername) https://learning.mindsatwork.com/courses/course-v1:MAW+OpenEnrollmentProgramJune2019+April_2020/course/ but is says: Logging into Open edX site: https://courses.edx.org/login.ajax Error, cannot login: HTTP Error 400: Bad Request Wrong Email or Password which makes sense, of course, because I don't have any credentials for this website...

Expected behaviour

Actual behaviour

mongoliablossom commented 4 years ago

Ok, after reading #326 I have now added in the script edx_dl.py the following code after line 60 OPENEDXSITES: 'mindsatwork': { 'url': 'https://learning.mindsatwork.com/dashboard', 'courseware-selector': ('nav', {'aria-label': 'Course Navigation'}), },_ Then I call the script with edx-dl -u (myusername) -p j(mypassword) -x mindsatwork --list-courses

But it doesn´t work... It gives me: OpenEdX platform should be one of: bits, edge, edx, fun, gwu-open, gwu-seas, mit xpro, stanford, usyd-sit

Any hints?