Skip to content

Instantly share code, notes, and snippets.

@awalterschulze
Created June 16, 2015 12:53
Show Gist options
  • Save awalterschulze/255fee0e2d8f9a3347a0 to your computer and use it in GitHub Desktop.
Save awalterschulze/255fee0e2d8f9a3347a0 to your computer and use it in GitHub Desktop.
How to download coursera videos

This is an installation and runnable Docker for cousera-dl https://github.com/coursera-dl/coursera

The instructions assumes you have docker and Make installed on your system. It was tested on OSx, but should work on Linux as well.

Run

make

Now are in a docker with an installed coursera-dl Your computer's current folder is mounted inside the docker's current folder

Simply run

coursera-dl -u '<username>' -p '<password>' <course name>

Or for on demand courses

coursera-dl -u '<username>' -p '<password>' --on-demand <course name>

The course name is typically the name found in the url. For example: addiction-and-the-brain

When the download is complete run

exit

Now your current folder should contain all the videos.

Enjoy!!!

FROM python:2.7.9-wheezy
RUN pip install coursera
RUN pip install --upgrade virtualenv
VOLUME /tmp/
WORKDIR /tmp/
ENTRYPOINT bash
run: build
docker run --rm=true -v `pwd`:/tmp/:rw -t -i --name coursera-dl-container coursera-dl-docker bash
build:
docker build -t coursera-dl-docker .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment