Skip to content

Instantly share code, notes, and snippets.

@omni5cience
Created October 25, 2011 20:29
Show Gist options
  • Save omni5cience/1314161 to your computer and use it in GitHub Desktop.
Save omni5cience/1314161 to your computer and use it in GitHub Desktop.
get a list of video urls from Stanford machine learning class while you're signed in
var urlPrefix = "http://s3.amazonaws.com/stanford_videos/cs229/videos/",
urlSuffix = ".mp4",
start = 1,
end = 44;
for (var i = start; i < end; i++) { $.get('http://www.ml-class.org/course/video/embed?video_id=' + i).success(function(res){console.log(urlPrefix + res.toString().match(/videoName = "(.*)";/)[1] + urlSuffix);})}
Go to the stanford machine learning class site and run that from the js console
It's helpful to go to the download videos page, because you need to get the video ids from there;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment