• Stars
    star
    189
  • Rank 204,649 (Top 5 %)
  • Language
    Python
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 7 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

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.

More Repositories

1

VSCodeNeovim

A rewrite of VSCodeVim, backed by neovim. Still in development, not meant for use.
TypeScript
315
star
2

OpenReviewExplorer

Explore OpenReview papers for ICLR (with citation counts, acceptance status, and ratings)!
Jupyter Notebook
86
star
3

CS344_2021

Udacity CS344 Introduction to Parallell Programming (https://classroom.udacity.com/courses/cs344), with assignments/materials updated to build in 2021
C++
45
star
4

Algorithms

Implementations of algorithms used for competitive programming, with a focus placed on readability, usability, conciseness, and performance (when important)
C++
43
star
5

MovieRankings

Movies that people living in 110D Dryden Road have watched since the beginning of the 2018-2019 school year
27
star
6

pytorch-vs-tensorflow

Tracking Pytorch vs Tensorflow adoption metrics.
Jupyter Notebook
22
star
7

notreddit

This is Notreddit.top These are the lowest voted posts on reddit.
HTML
9
star
8

ManiStories

JavaScript
8
star
9

pytorch_aws_helper

Some utility functions to help make working on scratch space easier
TypeScript
4
star
10

Schoolloop-HoraceScope

Chrome Extension for finding new grades after they're edited
JavaScript
4
star
11

CompProgramming

My competitive programming stuff
C++
3
star
12

ogb_baselines

A couple of simple baselines for OGB.
Python
3
star
13

VSCode-Xi

VSCode support for the Xi language
TypeScript
3
star
14

CV-Maze-Solver

Takes a picture of a maze, reads it in with computer vision, and solves it.
HTML
3
star
15

willmypaperbeaccepted

A website for predicting whether your paper (rated from 1-10) will be accepted, based off of the reviews :) Primarily intended for NeurIPS, but trained with data from ICLR.
JavaScript
3
star
16

slurm_scripts

Some slurm scripts I find useful.
Python
2
star
17

vscode-linguine

A simple VSCode extension for Linguine
TypeScript
2
star
18

DKRP

Jupyter Notebook
1
star
19

competitiveprogramming

Templates for competitive programming
C++
1
star
20

chillee.github.io

My Personal Site
HTML
1
star
21

pt_transformation_experiments

Python
1
star
22

bookmarklets

Some bookmarklets I find useful
HTML
1
star
23

pwcmlrpress

A script for scraping mlpress for use with papers with code
Python
1
star
24

Inferknow

A site to aid FTC teams around the world in scouting matches. Similar to the old yellow alliance.
JavaScript
1
star