Created
October 25, 2011 20:29
-
-
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
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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);})} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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