Solvededx dl edx-dl not able to download videos from edx platform
✔️Accepted Answer
Alright, quick fix:
replace as follows in /edx_dl/parsing.py:
Line 385:
subsections_soup = section_soup.find_all('li', class_='vertical outline-item focusable')
with subsections_soup = section_soup.find_all('li', class_=['vertical outline-item focusable', 'vertical outline-item focusable scored'])
and line 397:
sections_soup = soup.find_all('li', class_='outline-item section')
with sections_soup = soup.find_all('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.
Other Answers:
i have empty folders i tried the codes above but doesn't work.
https://courses.edx.org/courses/course-v1:CurtinX+IOT4x+3T2019/course/
Having the same issue :(
still empty folders not working with https://courses.edx.org/courses/course-v1:UCSanDiegoX+DSE230x+3T2019a/course/
before reporting any issue. Don't forget also to check the current issues to
avoid duplicates.
Subject of the issue
edx-dl fails to extract and download videos for "https://courses.edx.org/courses/course-v1:EdinburghX+PA1.1x+3T2019/course/" on www.edx.org
it seems the videos for this course are sourced from "https://media.ed.ac.uk/" and not youtube
Need help on resolving this issue
Your environment
Steps to reproduce
--- create an account on Edx
--- enroll for the course "https://courses.edx.org/courses/course-v1:EdinburghX+PA1.1x+3T2019/course/"
---- type the following into CMD
edx-dl -u username -p password -o path --ignore-errors --cache https://courses.edx.org/courses/course-v1:EdinburghX+PA1.1x+3T2019/course/
Expected behaviour
download to start normally
Actual behaviour
edx_dl version 0.1.10
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 Introduction to Predictive Analytics [course-v1:EdinburghX+PA1.1x+3T2019/co]
Downloading 0 section(s)
loading 2329 urls from cache [edx-dl.cache]
Extracting all units information in parallel.
No downloadable video found.