K Sai Kiran avatar

Coursera | Edx batch downloader

ksaikiranr

Published: 15 Oct 2017 › Updated: 15 Oct 2017Coursera | Edx batch downloader

Coursera | Edx batch downloader

Quick guide to batch download from mooc's

step1 and step last: Install coursera-dl

pip install coursera-dl

Usage:

To download only mp4 and subtitle files in course
coursera-dl -u user@gmail.com -p password coursename -f "mp4 srt"

To download everything except subtitles
coursera-dl -u user@gmail.com -p password coursename --ignore-formats  "srt"

For more options try coursera-dl -h

There will be many reasons why you or me would like to batch download the entire course from one of the greatest MOOC providers(coursera/edx).

Downloading the file manually can be painful(even though they provide download buttons). There is a nice, better and sort-of automated method to download the files, all thanks to beautiful python.

coursera-dl :
The coursera-dl is a script written in python to batch download the course files. Enough talks let me show you.

Step1: install coursera-dl (assuming you already have python installed. 
               In linux python comes as deafult but for windows you gotta manually download and
                install python).
               To install coursera-dl execute the command

        $pip install coursera-dl

If the above doesnt work for you then try doing things manually by executing these:

        cd /directory/where/I/want/my/courses
        virtualenv my-coursera
        cd my-coursera
        source bin/activate
        git clone https://github.com/coursera-dl/coursera-dl
        cd coursera-dl
        pip install -r requirements.txt
        ./coursera-dl ...

        once you have coursera-dl installed 90% work is done :)
        step2:
        Find out the course name from course url.
        For example if the url is: https://www.coursera.org/learn/algorithmic-toolbox/home
        The course name would be algorithmic-toolbox
        step3:
        Run the script:

        coursera-dl -u username@domain.com -p userpassword course-name-from-previous-step 

        This command will download everything about the course and all the data will be saved in your pwd.
    edx-dl:

        edx-dl works the same way, Check the docs for more information. 🙂
        steps:

        pip install edx-dl

        To install edx-dl run the above command and rest is same.

Source:

https://pypi.python.org/pypi/coursera-dl
https://github.com/coursera-dl/coursera-dl
https://github.com/coursera-dl/edx-dl

Leave Coursera | Edx batch downloader to:

Written by

Read more #batch posts


Best Posts From K Sai Kiran

We have not curated any of ksaikiranr's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From K Sai Kiran