Created
March 6, 2012 21:14
-
-
Save csabapalfi/1989008 to your computer and use it in GitHub Desktop.
Download Coursera videos
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
javascript:(function(){ | |
$('a.lecture-link').each(function (index){ | |
var $lectureLink = $(this); | |
var downloadLink = $lectureLink.attr('href').replace('view','download.mp4'); | |
var downloadName = '\"' + (index+1) + '.' + $lectureLink.text().trim() + '.mp4\"'; | |
var cookieHeader = ' --header \"Cookie:'+ document.cookie + '\" '; | |
console.log('curl -L ' + cookieHeader + downloadLink + ' > ' + downloadName); | |
}); | |
})(); |
Thanks!
Now your fork is the first on Google. :)
Ahh thank you so much! This is precisely what I've been looking for.
I expanded this code into a bookmarklet.
Wow. Great!
I updated (hacked) the bookmarklet to work with the current coursera page https://github.com/ma-ver-ick/Coursera-Video-Downloader-Bookmarklet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
win