Downloading Stanford Lectures
December 13th, 2010 by jMany Stanford classes are posted online as part of SCPD. Occasionally I get the hankering to learn something new and think that it would be great to download all of the videos from the past quarter and watch them at my leisure long after they’ve been removed from the SCPD website. Unfortunately, SCPD doesn’t go out of its way to make it quick or easy to download the videos.
Luckily, someone named Jon went ahead and wrote two scripts that are very useful. The first is a python script that uses mencoder to download the videos if you pass it a list of links. Getting the video URLs by hand is tedious though, so Jon wrote a Greasemonkey script that grabs all of the links for you.
Unfortunately, Stanford updated its SCPD page format at some point since the script was first published, so when I tried using it the other day it kept on throwing errors. I fixed the Greasemonkey script and posted the changes back as a comment to the original blog. But the scripts are really useful, so I decided to mirror them here just in case they ever vanished from the original author’s site.
So without further ado, here are slightly modified scripts (original versions here) that you can use to magically download all of the video lectures at the end of the Stanford quarter. I want to emphasize that they will only work *for current Stanford students* because you need to authenticate to get to the links page. If you are unsure about how to use Greasemonkey or python, please ask The Google.
Greasemonkey: scpd_links.user.js
Python: getSCPD.py