How to download course materials from coursera.org - quick start guide

Hello!
I enrolled in a few courses from coursera, but due to lack of time I could not do my homework on time. However, the desire to listen to lectures and see additional materials remained. But, I wanted to do all this offline. Going into each course and pumping everything out manually is not interesting. A very common solution to the problem under cat. For those who are not familiar with Python.

Having searched a little, I came across a script that helps to pump out all available materials from the course that interests me. I read the readme and understand that I need some kind of python and something else incomprehensible. Yes, I am not a programmer, I can not write in python and in general I do not have it.
Well, let's get started.

First you need to install Python.
We go to the sitepython.org/download and there we select the desired installation. For example, Python 2.7.3 Windows Installer (our script works only for 2.7). We install in the default folder without changing any settings. After we read that we need some kind of pip, with which we can install a script to download materials.
If you follow the link from the github, then it is very easy for a Windows user to get confused. Therefore, we are doing easier. We are looking for how to put this very pip on Windows. The solution is here . We follow the link from the answers and scroll down the page. Because we installed Python 2.7.3, then select the appropriate installer: setuptools-0.6c11.win32-py2.7.exe
download, run, agree with everything and do not touch anything in the paths.
Now it is necessary to append the line of the form to the end in the environmental variable PATH:

C:\Python27;C:\Python27\Scripts;



Next, start the cmd console. And hereinafter, we do not put any pip. And we write simply:

easy_install coursera-dl

As far as I understand, pip, that easy_install are package managers (or what is your name for it smartly?), Respectively, should be able to do almost the same things. Well, do not bother.



That's it, the script has been installed, it’s time to launch it.

We write

coursera-dl –u %username% -p %password% -d D:\ introastro-2012-001

it for example. Where between the percentages is our username and password on the cursor. After –d, the path where to load the data. And then the name of the course. The course name is taken from its address: class.coursera.org/introastro-2012-001/class/index



We see that a certain lxml is not available and therefore a standard parser is used. There are two options - to hammer or put lxml.
Personally, I get an error when trying to install lxml:



Searches show that it seems that we are downloading source codes that would be nice to compile, but nothing. Here we either put some kind of compiler, or don’t bother and look for a compiled library. For example, here . Download lxml-3.0.1.win32-py2.7.exe and install. During the installation process, again, nothing is changed. After installation, run the script again. Everything works. For some reason, only the script itself does not want to download additional videos from YouTube, but this is already a question for the script developer.

Everything is done on Windows 7 32-bit.
Although, all these dances with a tambourine - really, no one will make a normal graphical interface?

Also popular now: