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

edx-dl : No downloadable video found #670

Closed sonu-666 closed 2 years ago

sonu-666 commented 3 years ago

Can't download edx course

No downloadable video found. tried this https://github.com/coursera-dl/edx-dl/issues/559#issuecomment-549392156

replace as follows in /edx_dl/parsing.py:

Line 385: subsections_soup = section_soup.findall('li', class='vertical outline-item focusable') with subsections_soup = section_soup.findall('li', class=['vertical outline-item focusable', 'vertical outline-item focusable scored'])

and line 397:

sections_soup = soup.findall('li', class='outline-item section') with sections_soup = soup.findall('li', class=['outline-item section', 'outline-item section scored'])

This should work for both the 'old' and new format. Will try to run some tests and create a merge request sometime this week.

but no use

edx-dl

Steps to reproduce

1 - Site Planning Online [course-v1:MITx+11.304x+2T2020/co] https://courses.edx.org/courses/course-v1:MITx+11.304x+2T2020/course/

Expected behaviour

download the course

Actual behaviour

(base) C:\Users\sonu>edx-dl -u e****@gmail.com --list-courses edx_dl version 0.1.12 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 can access 1 courses 1 - Site Planning Online [course-v1:MITx+11.304x+2T2020/co] https://courses.edx.org/courses/course-v1:MITx+11.304x+2T2020/course/

(base) C:\Users\sonu>edx-dl -u e***@gmail.com https://courses.edx.org/courses/course-v1:MITx+11.304x+2T2020/course/ edx_dl version 0.1.12 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. Downloading Site Planning Online [course-v1:MITx+11.304x+2T2020/co] Downloading 0 section(s) Extracting all units information in parallel. No downloadable video found.

MarwanShehata commented 3 years ago

Same error

ribvl commented 3 years ago

Same error :/ edx-dl created all folders, but no files were downloaded. Using edx-dl version 0.1.13 and youtube-dl 2021.2.22 Trying to save files from https://courses.edx.org/courses/course-v1:GTx+ISYE6501x+1T2021/course/

asuragan commented 3 years ago

Same error :/ edx-dl created all folders, but no files were downloaded. Using edx-dl version 0.1.13 and youtube-dl 2021.2.22 Trying to save files from https://courses.edx.org/courses/course-v1:GTx+ISYE6501x+1T2021/course/

@ribvl edx-dl is based on youtube-dl, but edx videos are no longer on YouTube, but on their own server

mor3dr3ad commented 3 years ago

Same error :/ edx-dl created all folders, but no files were downloaded. Using edx-dl version 0.1.13 and youtube-dl 2021.2.22 Trying to save files from https://courses.edx.org/courses/course-v1:GTx+ISYE6501x+1T2021/course/

@ribvl edx-dl is based on youtube-dl, but edx videos are no longer on YouTube, but on their own server

Well true that the files are now on the edx server. But then the code should still show downloadable sections and courses but fail when downloading. I think there must have been some changes in the html again.

Will try and have a look. the downloading of the files should actually be even easier: extract the link from html and then use wget/curl to download the video file directly..

asuragan commented 3 years ago

Same error :/ edx-dl created all folders, but no files were downloaded. Using edx-dl version 0.1.13 and youtube-dl 2021.2.22 Trying to save files from https://courses.edx.org/courses/course-v1:GTx+ISYE6501x+1T2021/course/

@ribvl edx-dl is based on youtube-dl, but edx videos are no longer on YouTube, but on their own server

Well true that the files are now on the edx server. But then the code should still show downloadable sections and courses but fail when downloading. I think there must have been some changes in the html again.

Will try and have a look. the downloading of the files should actually be even easier: extract the link from html and then use wget/curl to download the video file directly..

Maybe it's because they changed the url from https://**_courses_**.edx.org/courses/course-v1:GTx+ISYE6501x+1T2021/**_course_/ to https://learning.edx.org/course/course-v1:MITx+7.00x+1T2021/home**

floviolleau commented 3 years ago

Hi,

You can try this project: https://github.com/rehmatworks/edx-downloader.

This project seems not maintained

michalple commented 1 year ago

Does anyone here have archived the course "Site Planning Online" and would care to share?