Skip to content

Instantly share code, notes, and snippets.

@awalterschulze
Last active August 2, 2018 06:32
Show Gist options
  • Save awalterschulze/531ae5c688746eece5db to your computer and use it in GitHub Desktop.
Save awalterschulze/531ae5c688746eece5db to your computer and use it in GitHub Desktop.
How to download edx videos

This is an installation and runnable Docker for edx-downloader https://github.com/shk3/edx-downloader

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 edx-downloader Your computer's current folder is mounted inside the docker's current folder

Simply run

python /edx-downloader/edx-dl.py -u '<username>' -p '<password>' <course url>

Or for on demand courses

python /edx-downloader/edx-dl.py -u '<username>' -p '<password>' --on-demand <course url>

Here is an example of a course url: https://courses.edx.org/courses/edX/DemoX.1/2014/info

It can also be checked with:

python /edx-downloader/edx-dl.py -u '<username>' -p '<password>' --list-courses

When the download is complete run

exit

Now your current folder should contain all the videos.

Enjoy!!!

FROM python:2.7.9-wheezy
RUN git clone https://github.com/shk3/edx-downloader
RUN (cd edx-downloader && pip install -r requirements.txt)
RUN pip install --upgrade youtube_dl
VOLUME /tmp/
WORKDIR /tmp/
ENTRYPOINT bash
run: build
docker run --rm=true -v `pwd`:/tmp/:rw -t -i --name edx-dl-container edx-dl-docker bash
build:
docker build -t edx-dl-docker .
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment