A python package for archiving content from coursera.org (videos, lecture notes, ...) for offline reference. Originally forked from https://github.com/abhirama/coursera-download but significantly cleaned up and enhanced.
Some people have asked if they could donate something. If you wish you can do so here:
Make sure you have installed Python and pip.
Then simply run: pip install coursera-dl
Depending on your setup this will create a coursera-dl
script in /usr/local/bin
(linux) or
c:\\Python2.7\\Scripts
(windows)
(to upgrade use pip install --upgrade
)
See: coursera-dl -h
Example usage:
$ coursera-dl -u MYUSERNAME -p MYPASSWORD -d MYPATH algo-2012-001 ml-2012-002
Note: you can also specify your login and password in .netrc
file in your home directory.
Just add this line to ~/.netrc
machine coursera-dl login MYUSERNAME password MYPASSWORD
Then set the permission of ~/.netrc
to 600
(owner can read and write).
$ chmod 600 ~/.netrc
Now you can use coursera-dl like this:
$ coursera-dl -d MYPATH algo-2012-001 ml-2012-002
Note: ensure you have accepted the honor code of the class before using this script (happens the very first time you go to the class page).