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

Only folder structure without videos #649

Open carlosvega opened 4 years ago

carlosvega commented 4 years ago

Subject of the issue

edx-dl creates the folder structure but does not download any video

Your environment

Steps to reproduce

edx-dl -u https://courses.edx.org/courses/course-v1:KTHx+PHSC01.1x+1T2020/course/

Expected behaviour

I would expect it to download all videos

Actual behaviour

Is creating folder structure only

diamneth commented 3 years ago

Anyone ever got this error and knows anything about it?

Course : 0%| | 0/1Got SSL/Connection error: HTTPConnectionPool(host='www.math.umt.edu', port=80): Max retries exceeded with url: /bardsley/courses/495/Projects/HIV/PerelsonEtAl1996.pdf (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001DD37B2C910>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond')) SSL/Connection error ignored: HTTPConnectionPool(host='www.math.umt.edu', port=80): Max retries exceeded with url: /bardsley/courses/495/Projects/HIV/PerelsonEtAl1996.pdf (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x000001DD37B2C910>: Failed to establish a new connection: [WinError 10060] A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond'))

jackforfaltu commented 3 years ago

@MATRIX30

Look here... #778 Basically downgrade Python 3.9.x to 3.8 or lower.

abeckman commented 3 years ago

First a thank you to @RJFeddeler for the great work!

When I started downloading courses using that version I was getting the split audio and video. I'm on Centos 8 and didn't have ffmpeg installed. Once I got that installed (something of a battle in itself), rerunning edx-dl not only merged the files, but got rid of the separated ones already there.

stacyH8 commented 3 years ago

Meanwhile, since I couldn't use this tool, I created my own chrome extension for that. You can find it here. https://github.com/carlosvega/edx-video-extension

Thank you for you trying. But it can't work.

JunaidShafi commented 3 years ago

Thank You for your work @RJFeddeler but while download a course mine gets stuck on 24% before which this always works flawlessly and after reaching it it just stucks there

owaiss007 commented 3 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 It is giving me an error that no downloadable video found. I think edx may have changed their structure. Could anyone confirm whether it is working with them?

Your environment Operating System (name/version): Windows 10 Python version: 3.8 youtube-dl version: edx-dl version: 0.1.13 Steps to reproduce Tell us how to reproduce this issue. Please provide us the course URL, and the specific subsection or unit if possible. https://courses.edx.org/courses/course-v1:PurdueX+CE597.1+1T2021/course/

Expected behaviour It would say No downloadable video found.

Actual behaviour image

@RJFeddeler Can you please help me?

fedyd commented 3 years ago

I get the "No downloadable video found" message too. Previously I got a "HTTP Error 403: Forbidden" (issue #662). There @mobiiin suggested to edit the edx_dl.py script line n. 425 in this way: 'User-Agent': 'Chrome/88.0.4324.190' input your chrome version After that change I began to get the "No downloadable video found".

fedyd commented 3 years ago

I have also noted that if I change in edx_dl.py the line n.63 from:

'url': 'https://courses.edx.org' to 'url': 'https://learning.edx.org'

I get again the "HTTP Error 403: Forbidden", while re-changing to the original value I get the "No downloadable video found" message.