Coursera | Edx batch downloader

in batch •  7 years ago 

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 [email protected] -p password coursename -f "mp4 srt"

To download everything except subtitles
coursera-dl -u [email protected] -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 [email protected] -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
Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!