Skip to content

Instantly share code, notes, and snippets.

@swayson
Created January 31, 2014 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save swayson/8732013 to your computer and use it in GitHub Desktop.
Save swayson/8732013 to your computer and use it in GitHub Desktop.
Shell script for preparation and use of the coursera-dl python script.
# Create a virtual environment using conda
conda create -n coursera_dl python=2.7 pip
# Get the code
git clone https://github.com/coursera-dl/coursera.git
cd coursera\
# Install the dependencies (using virtual environment)
activate coursera_dl
pip install -r requirements.txt
# Download all available lecture materials
coursera-dl.bat -u <USER> -p <PASS> --path=<DIR> networksonline-002
# Download specific lecture materials
# By section name
coursera-dl -u <user> -p <pass> -sf "Week_4" networksonline-002
# By Lecture name
coursera-dl -u <user> -p <pass> -lf "4.14" networksonline-002
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment