Giter Club home page Giter Club logo

coursera-dl-all's Introduction

coursera-dl-all

#NOTE: THIS PROJECT IS OBSOLETE AFTER 6/30/2016. Coursera has fully committed to their new format, and this application was designed for their old class format. Extend the Coursera Downloader by downloading quizzes and assignments (and hopefully forum posts soon!). Uses coursera-dl in the process.

An example of download

##Features Cross-Platform (theoretically!) Python 2 & 3
Download quizzes
Download important files on assignment pages
Download videos (credits to coursera-dl)
Download sidebar links (Errata, Resources, etc.)
Download text file of important links.
Ability to automatically sign up for a class / bypass the honor code stuff (so you don't need to sign up for a class manually to download it).
A list of all classes on the old platform for Coursera

##Step by Step Instructions (Thanks to Light1980 for the initial write up)

  1. Make sure you have Firefox installed (below version 47)
  2. Make sure you have python installed (2 or 3, although 3 is preferred)
  3. Install coursera_dl with pip if you want to download videos. pip install coursera_dl
  4. Download this repository as a zip file.
  5. Unzip the file to your preferred location.
  6. Fill in classes.csv file with your course url / slugs and save. pgm-003 or class.coursera.org/pgm-003
  7. open up your terminal/CMD and change your directory to the location of dl_all.py. For example:
    cd F:\coursera-dl-all-master\coursera-dl-all-master
  8. Write command like (the things in parenthese are for explanation and should not be kept)

python dl_all.py -u your_coursera_account -p your_password -v(download video) -a(download assignment) -q(download quiz) --path the_location_of_download

##Todo: Add support for forums
Add support for human graded assignments
Fix bugs for any courses
Suggestions?

##Installation -Coursera-Dl. This must be installed if you want to download videos. If you only need to download non video stuff, just don't use the -v tag.
pip install coursera-dl

-Selenium
pip install selenium

-PhantomJS. (optional) If you want to run the program with the browser invisible, install this

##To run:

First populate the classes.csv with slugs or URLs of desired classes. Slugs would be things like pgm-003 while the URL would be https://class.coursera.org/pgm-003

note: coursera.org/learn/ doesn't work.
Next, run the program with the following tags: -u: for username/email
-p: for password
-q: (optional) to download quizzes
-v: (optional) to download videos
-a: (optional) to download assignments
--path: (optional) a path for coursera-download folder to be downloaded to --download_type: (optional) 0 for .html and .png files for each page, 1 for .html only, 2 for .png only --headless: (optional) if you install PhantomJS, you can run this program without that pesky browser popping up.

So classes.csv might look something like:

https://class.coursera.org/gametheory-005/ neuralnets-2012-001

while your command line prompt would be:

python dl_all.py -u [email protected] -p hunter2 -q -v

note: you must be signed up for the courses. Note: A list of all classes is provided (not in the right format though)

##Output The output is sorted into categories. Assignments is always there, and the other categories are pulled from the site itself.

Each category (e.g. Quizzes, Assignments, Homework) is split into subfolders for each quiz/assignment. Each of these folders hold a screenshot of the page, all zip files on the page, a links.txt holding all links on the page (in case there's files that you need to download that aren't a zip file).

This would download all the quizzes and videos for the game theory and neural nets course.

coursera-dl-all's People

Contributors

chillee avatar

Watchers

 avatar

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.