Giter Club home page Giter Club logo

coursera's Introduction

Download all Coursera materials

Downloading all the assignments jupyter notebooks and files  

1 Go to the home of the coursera-notebook hub
2 Create a new python notebook
3 Execute !tar cvfz allfiles.tar.gz * in a cell
4 Download the archive !
参考:https://www.reddit.com/r/learnmachinelearning/comments/7er5ps/coursera_downloading_all_the_assignments_jupyter/

Downloading all materials of the course, like videos, ppts, etc

Install the script: coursera-dl

pip install coursera-dl

Running the script

Run the script to download the materials by providing your Coursera account credentials (e.g. email address and password or a ~/.netrc file), the class names, as well as any additional parameters:

General:                     coursera-dl -u <user_name> -p <passport> <course_name>
Multiple classes:            coursera-dl -u <user> -p <pass> <course_name1> <course_name2> <course_name3>
Filter by section name:      coursera-dl -u <user> -p <pass> -sf "Chapter_Four" <course_name>
Filter by lecture name:      coursera-dl -u <user> -p <pass> -lf "3.1_" <course_name>
Download only ppt files:     coursera-dl -u <user> -p <pass> -f "ppt" <course_name>
Download only mp4 files:     coursera-dl -u <user> -p <pass> -f "mp4" <course_name>
Use a ~/.netrc file:         coursera-dl -n -- <course_name>
Get the preview classes:     coursera-dl -n -b <course_name>
Specify download path:       coursera-dl -n --path=<the path you want to save on> <course_name>
Display help:                coursera-dl --help

Maintain a list of classes in a dir:
Initialize:              mkdir -p CURRENT/{class1,class2,..classN}
Update:                  coursera-dl -n --path CURRENT `\ls CURRENT`

use default config

Alternatively, if you want to store your preferred parameters (which might also include your username and password), create a file named coursera-dl.conf where the script is supposed to be executed, with the following format:

--username <user>
--password <pass>
--subtitle-language en,zh-CN|zh-TW
--download-quizzes
#--mathjax-cdn https://cdn.bootcss.com/mathjax/2.7.1/MathJax.js
# more other parameters

Parameter which is stored in the file will be overriden if it is again specified in your commandline script

Note: In coursera-dl.conf, all the parameters should not be wrapped with quotes.

Resuming downloads

coursera-dl -u <user> -p <pass> --resume <course_name>

转载自:https://github.com/coursera-dl/coursera-dl

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.