Coursera | Edx batch downloader

in #batch7 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
Sort:  


This post was resteemed by @steemitrobot!
Good Luck!

Resteem your post just send 0.100 SBD or Steem with your post url on memo. We have over 2000 followers. Take our service to reach more People.

Pro Plan: just send 1 SBD or Steem with your post url on memo we will resteem your post and send 10 upvotes from our Associate Accounts.

The @steemitrobot users are a small but growing community.
Check out the other resteemed posts in steemitrobot's feed.
Some of them are truly great. Please upvote this comment for helping me grow.

Coin Marketplace

STEEM 0.24
TRX 0.26
JST 0.041
BTC 98556.18
ETH 3491.32
USDT 1.00
SBD 3.37