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.92k stars 638 forks source link

Support for opencv: No downloadable video found #629

Closed stenpiren closed 3 years ago

stenpiren commented 3 years ago

Subject of the issue

I checked all open/closed issues regarding the "No downloadable video found", in my case in particular is for "opencv" learning platform: https://courses.opencv.org/

Environment

Steps to reproduce

After modifying the edx-dl.py by adding:

    'opencv':{
        'url':'https://courses.opencv.org',
        'courseware-selector': ('nav', {'aria-label': 'Course Navigation'}),
    }

Then running:

python edx-dl.py -u "username" -p "password" -x opencv https://courses.opencv.org/courses/course-v1:OpenCV.org+OpenCV-102+2019_T1/course/

I get:

edx_dl version 0.1.13
Building initial headers for future requests.
Getting initial CSRF token.
Found CSRF token.
Logging into Open edX site: https://courses.opencv.org/login_ajax
Extracting course information from dashboard.
Downloading Computer Vision 1: Introduction (C++) [course-v1:OpenCV.org+OpenCV-102+2019_T1/co]
Downloading 0 section(s)
Extracting all units information in parallel.
No downloadable video found.

Expected behaviour

Courses should download but is not. Is there anyone experienced with opencv leaning platform (open edx) or can look into my account so as to improve this script?

stenpiren commented 3 years ago

I managed to fix: