Solvededx dl edx-dl not able to download videos from edx platform

🚨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

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

  • Operating System (name/version):windows 10 Professional
  • Python version: 3.7.0
  • youtube-dl version: 2019.09.28
  • edx-dl version: 0.1.10

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.

53 Answers

✔️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 :(

Related Issues:

12
edx dl edx-dl not able to download videos from edx platform
Alright quick fix: replace as follows in /edx_dl/parsing.py: Line 385: subsections_soup = section_so...
6
edx dl No longer downloading anything, only empty folder structure
I was having this issue with edX (courses.edx.org) The following change seems to have fixed it but I...
3
edx dl Course Download Failure
I'm not an author of the tool but you can fix it by changing line 425 of edx_dl.py which specifies t...
17
NewPipe YouTube subscriptions cannot be imported (seem to be exported as .csv now)
Also running into this I am using the latest version - 0.21.7 I checked but didn't find any duplicat...
109
coursera dl HTTPError: 400 Client Error: Bad Request for url: https://api.coursera.org/api/login/v3
If you don't mind a bit of hacking.. Login to Coursera once through the browser Find your installed ...
18
scdl HTTPError: 401 Client Error: Unauthorized for url
I also have this error but this fixed it: Have used scdl flawlessly before but now seem to be gettin...
12
instaloader Login error: JSON decode fail, 403 - Forbidden.
This seems to be a problem with retrieving the csrf token in line 214 of instaloadercontext.py does ...
6
gallery dl Instagram stopped working
Should be fixed with 447488f Querying /p/<shortcode>/__a=1 for each post is what gets one blocked/ba...
5
imgbrd grabber E621 not loading content
@bwalker22 @lisiado5 If you still cannot see E621 in the sources Bug description No content from e62...
4
yt dlc [Broken] Youtube sometimes fails with "Unable to extract video data" for the same video.
Took a closer look at this issue Youtube is serving different page response depending on your accoun...
4
pyload Access pyload using nginx reverse proxy - 502 Bad Gateway
I can confirm that deleting the contents of jinja_cache solved the problem of wrong links being gene...
4
udemy dl Download of videos fails with URLError
The problem seems to be related to urllib I'm using Python3 BTW Crudely replacing it with a call to ...
3
gallery dl Questions, Feedback and Suggestions
This is actually a really good idea especially since I'm very hesitant/lazy about documenting things...
926
keras Loading model with custom loss function: ValueError: 'Unknown loss function'
I solved this problem by adding 'custom_bojects' my loss function: I trained and saved a model that ...
731
scrapy ' error: command 'x86_64-linux-gnu-gcc' failed with exit status 1 '
@euler16 for scrapy with Python 3 you'll need with Python 2 you'll need I wanted to install scrapy i...
633
keras Tensorflow backend - bug in model._make_predict_function(...)
I had this problem when doing inference in a different thread than where I loaded my model ...
575
mysqlclient Can't install mysqlclient on MacOS
You can set ssl library path explicitly. Hi I'm on MacOSX Sierra ...
516
keras Creating Model variable throws "AttributeError: 'Tensor' object has no attribute '_keras_history'"
@zaid478 oh I assumed you were doing it on coursera Anyway Hello all setup: Keras 2.0 Tensorflow 1.0...
456
tensorflow ImportError: libcublas.so.10.0: cannot open shared object file: No such file or directory
@rhinsall I just found this out myself not sure if it's common knowledge but got around this by doin...
423
ipython Last jedi release (0.18.0) is incompatible with ipython (7.19 and 7.18 tested); reason - column arg was deprecated, and now removed
As a temporary fix for anyone just trying to get things working again: It would be really nice if yo...
416
pyodbc pip install pyodbc failing: error: command 'x86_64-linux-gnu-gcc' failed with exit status 1
src/pyodbc.h:56:17: fatal error: sql.h: No such file or directory #include <sql.h> ^ Your machine do...
395
keras "<tensor> is not an element of this graph." when loading model.
I had a problem similar to that of @piraka9011 which was solved by calling model._make_predict_funct...
392
psycopg2 psycopg2-binary fails to install on macOS Big Sur 11.0.1 and Python 3.9.0 (with possible workaround)
Actually figured it out Haven't worked on a Mac in a while and forgot about the PostgreSQL dependenc...
387
pytorch I can't import PyTorch, libomp.dylib can't be loaded.
brew install libomp solves the problem. 🐛 Bug I tried to install PyTorch but I can't use it ...
380
pytorch RuntimeError: cuda runtime error (59) : device-side assert triggered when running transfer_learning_tutorial
@soumith Hi I find the error it is due to my labels contain value -1 which is unacceptable in criter...
373
Zappa bad magic number in 'application': b'\x03\xf3\r\n': ImportError
I was able to fix this too by doing find -name \*.pyc -delete Mine definitely wasn't caused by PY2 -...
356
tensorflow At Runtime : "Error while reading resource variable softmax/kernel from Container: localhost"
I had the same issue in tensorflow 1.13.1 which I have resolved by creating a reference to the sessi...
355
tensorflow Mac + Python 3.6.1: Attempting to download mnist data results in CERTIFICATE_VERIFY_FAILED error
This might have also been because I recently switched to a new machine and it's still only partially...
335
pyenv WARNING: pyenv init - no longer sets PATH.
I saw the same message on an RH derivative Linux using bash 4.4.19 To resolve After running pyenv up...
333
pyenv unable to install python 3.8.0 on macox 11
Try to install brew reinstall zlib bzip2 and in the ~/.zshrc file add the following: in case you are...
331
psutil psutil fails to install on python3.6 and Ubuntu16.04
I was just about to comment the same after I read the install file: https://github.com/giampaolo/psu...
326
psycopg2 Installing psycopg2-binary with Python:3.6.4-alpine doesn't work
I found this solution which worked quite fine Edit The above compiles the package from source so I w...
325
pyenv Unable to build Python on macOS Big Sur with Xcode 12 beta
Thank you HomeBrew team for all the hard work you did to find the patch that python team is brewing ...
320
Pillow ImportError: cannot import name 'PILLOW_VERSION' from 'PIL' (unknown location)
I'm getting the same error right now after conda install pillow on Win 10 It installed pillow 6.2.1 ...
317
pip ImportError in system pip wrappers after an upgrade
I followed some instructions elsewhere and ran and hit upon this issue fixed it returning me to the ...
308
tensorflow UnrecognizedFlagError: Unknown command line flag 'f'
I solved this issue by adding the line: tf.app.flags.DEFINE_string('f' '' 'kernel') what this essent...
298
tensorflow FutureWarning: Deprecated numpy API calls in tf.python.framework.dtypes
@Akeaakar And for the time being pip install numpy<1.17 to revert to numpy version 1.16.4 ...
295
certbot Client with the currently selected authenticator does not support any combination of challenges that will satisfy the CA
Unfortunately My operating system is (include version): Ubuntu 16.04 I installed Certbot with (certb...
293
pyinstaller TypeError: an integer is required (got type bytes) when compiling any script
pip install https://github.com/pyinstaller/pyinstaller/archive/develop.tar.gz Direct install the lat...
287
readthedocs.org Sphinx error: master file [..]/checkouts/latest/contents.rst not found
Encountered the same problem here I'm using sphinx 2.0.1 I’m still new to readthedocs.org and have n...
277
discord.py Cannot connect to host discordapp.com certificate verify failed
I looked into this some more Apparently 3.6 changed the installation process on OS X ...
265
tensorflow ERROR: Cannot uninstall 'wrapt'. during upgrade
This worked for me: pip install wrapt --upgrade --ignore-installed pip install tensorflow ...
264
tqdm Jupyterlab and tqdm_notebook
I confirm this problem on my environment but it is upstream so IMHO nothing can be done on tqdm Plea...
259
virtualenv Error creating virtualenv with python3.6
The original poster's problem is due to not having the 'python3.6-venv' package installed ...
254
pip pip 18.0 install fails with AttributeError: 'NoneType' object has no attribute 'bytes'
try: python -m pip install -U --force-reinstall pip inside your venv Environment pip version: 10.0.1...
254
pytorch ModuleNotFoundError: No module named 'torch._C'
Solution the problem is that you have a folder called torch in the same directory which is being pic...
252
tensorflow Keras application - Tensor is not an element of this graph on eval after train
K.clear_session() did not work for me however what worked was : While predicting use the same graph ...
240
pip ImportError: cannot import name 'sysconfig' (Ubuntu 16.04)
I also saw a similar error However by installing python3-distutils it was possible to avoid this err...
234
pyenv Install failed, "zlib not available" on macOS Mojave
Solved it by running: sudo installer -pkg /Library/Developer/CommandLineTools/Packages/macOS_SDK_hea...