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

Cannot download any course from edx." returned non-zero exit status 1" #444

Open ghost opened 7 years ago

ghost commented 7 years ago

Subject of the issue

I am unable to download any of the courses from edx using edx-dl Please help me.

Your environment

Steps to reproduce

Course URL: https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/course/

Expected behaviour

Actually the course should be downloading. I also use coursera-dl but it is working absolutely fine. I can download from coursera-dl

Actual behaviour

https://pastebin.com/cYTDdrHj tejas@tejas-Lenovo-G50-80:~$ edx-dl -u mail@gmail.com -p ****** -s https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/course/ edx_dl version 0.1.5 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 Computer Science [course-v1:HarvardX+CS50+X/co] Downloading 2 section(s) Section 1: CS50x 2017 ▼ Week 0 Week 1 Week 2 Week 3 Week 4 Week 5 Week 6 Week 7 Week 8 Week 9 Week 10 Week 11 Section 2: CS50x 2016 ▼ Where'd it go? Extracting all units information in parallel. Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@5b52cf0573bb4c9ab8bc979e728b2446' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@da6b01d04a5643e796a4ec904db9363c' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@e7180a2d0f4445878d0e74f6ddbde944' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@423d8aa02ac945acb41fdb3fa5e8af88' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@04d14ed5bcaf4d7fae80b6e0772fd1c7' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@9096126aaf144aab9fa4aeb8ad9eb938' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@3bc1fc6f3ec949eebc726673d164fff8' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@9bd6a0559c6d4a6d923a94375347efc0' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@5f245ed1b5004cdcb2f37a09ea90f05d' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@59d12907a77f4f4d8d24b831003b6962' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@6f7f4b3b4f89444ea4f32563569fe093' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@51ce7ee1ff8b46019f32c6cc729f307b' Processing 'https://courses.edx.org/courses/course-v1:HarvardX+CS50+X/jump_to/block-v1:HarvardX+CS50+X+type@sequential+block@d56caec9e90c448c87878e5f8ec44d62' Removed 0 duplicated urls from 473 in total Output directory: Downloaded [download] http://cdn.cs50.net/2016/fall/lectures/0/lang/en/week0.txt => Downloaded/Introduction_to_Computer_Science/01-CS50x_2017_/01-week0.txt [download] https://youtu.be/M-XlYymh714 => Downloaded/Introduction_to_Computer_Science/01-CS50x_2017_/01-%(title)s-%(id)s.%(ext)s Downloading video with URL https://youtu.be/M-XlYymh714 from YouTube. [youtube] M-XlYymh714: Downloading webpage [youtube] M-XlYymh714: Downloading embed webpage [youtube] M-XlYymh714: Refetching age-gated info webpage ERROR: M-XlYymh714: YouTube said: This video is private. Traceback (most recent call last): File "/usr/local/bin/edx-dl", line 11, in <module> sys.exit(main()) File "/usr/local/lib/python2.7/dist-packages/edx_dl/edx_dl.py", line 1061, in main download(args, selections, all_units, headers) File "/usr/local/lib/python2.7/dist-packages/edx_dl/edx_dl.py", line 840, in download headers) File "/usr/local/lib/python2.7/dist-packages/edx_dl/edx_dl.py", line 812, in download_unit skip_or_download(res_downloads, headers, args) File "/usr/local/lib/python2.7/dist-packages/edx_dl/edx_dl.py", line 771, in skip_or_download f(url, filename, headers, args) File "/usr/local/lib/python2.7/dist-packages/edx_dl/edx_dl.py", line 704, in download_url download_youtube_url(url, filename, headers, args) File "/usr/local/lib/python2.7/dist-packages/edx_dl/edx_dl.py", line 744, in download_youtube_url execute_command(cmd, args) File "/usr/local/lib/python2.7/dist-packages/edx_dl/utils.py", line 42, in execute_command raise e subprocess.CalledProcessError: Command '['youtube-dl', '--ignore-config', '-o', u'Downloaded/Introduction_to_Computer_Science/01-CS50x_2017_/01-%(title)s-%(id)s.%(ext)s', '-f', 'mp4', '--all-subs', u'https://youtu.be/M-XlYymh714']' returned non-zero exit status 1

kenmott commented 7 years ago

I run into a similar issue, it only downloaded the first video then runs into an issue on the second video.

salernoa commented 6 years ago

Also have the same problem with https://courses.edx.org/courses/course-v1:GTx+CSE6040x+2T2017/course/. I checked the URLs of the videos, and they exist on YouTube.

sundeadtom commented 6 years ago

same error

Rishik0208 commented 6 years ago

Any solution?