-
-
Save matpalm/1998930 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); | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ahh yes! This is exactly what I've been looking for...