- to answer several similar questions in quora:
Is there a way to mass download the materials from a Coursera course?
How can I download all the video lectures of a coursera course in one go?
Are there any ways to batch download the complete course videos on coursera new platform?
How do I write a Python script that automatically downloads all the videos of the course from Coursera?
Ashish Kedia: How can I write a Script in Python to mass download all course videos from Coursera new platform and name them by lecture title?
-
downloading from the old 'http://class.coursera.org' is easy since:
- it is a simple html and can be parsed with html parser;
- all links to the course material is provided in one page url;
- you can use many popular software like 'DownThemAll' to download all the materials you wish to download;
- there are many solutions already provided in github.com for this purpose;
-
downloading from the new 'https://www.coursera.org' however is harder since:
- it is javascript rendered and must be parsed using a browser engine, meaning: the html elements you want to parse may not be visible until you view it in a browser;
- links to the course materials are spread within many page urls;
- you will get tired of downloading after 144 urls;
-
this compiled python gives solution to download all videos, subtitles and transcripts in:
https://www.coursera.org/
- usage:
python www-coursera-downloader.pyc
- You will be prompted to supply user (email) and password for your Coursera account;
-----------------------------------------------------------------------
-------------------- WELCOME TO COURSERA DOWNLOADER -------------------
please kindly support my daily sustenance: [email protected]
-----------------------------------------------------------------------
one time setup user and password
Enter your e-mail address: [email protected]
[email protected]
Enter your Coursera password: somesecretwords
***************
User and password has been saved to coursera.pass file.
Please delete the file if you want to change your credentials.
-
Your credentials are encrypted and then saved locally into a file named coursera.pass placed in the same folder of this script.
-
You will be prompted to select the course:
-----------------------------------------------------------------------
-------------------- WELCOME TO COURSERA DOWNLOADER -------------------
please kindly support my daily sustenance: [email protected]
-----------------------------------------------------------------------
Getting courses list...
Welcome to Coursera!
There are 13 courses available
[1] Machine Learning: Regression
[2] Machine Learning Foundations: A Case Study Approach
[3] Using Databases with Python
[4] Using Python to Access Web Data
[5] R Programming
[6] Practical Predictive Analytics: Models and Methods
[7] Machine Learning: Recommender Systems & Dimensionality Reduction
[8] Machine Learning: Clustering & Retrieval
[9] Machine Learning: Classification
[10] The Data ScientistÔÇÖs Toolbox
[11] Computational Investing, Part I
[12] Machine Learning for Data Analysis
[13] Practical Machine Learning
[ ] Please pick course number!
- bot will crawl all the lesson in all weeks of your selected course;
- it then will download all the videos, subtitles and transcripts in your selected course.
- Python packages requirements:
Crypto, os, re, sys, splinter, selenium, time, urllib2
- Javascript package requirement:
phantomjs
- Download PhantomJS from phantomjs.org:
http://phantomjs.org/download.html
-
You may want to use phantomjsInstaller.sh within this repository.
-
for windows users please check recommended packages here.
if you find it useful please donate: [email protected], I am looking for a new job.