Created
March 13, 2014 22:11
-
-
Save kingbin/9538133 to your computer and use it in GitHub Desktop.
Download resources from Vegas VS live 2014
This file contains hidden or 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
// Resources available from | |
// http://www.redmondevents.com/virtual/vslive/2014/live360/Default.aspx | |
// Javascript in javascript console | |
//$(".zip a").each(function( index ) { | |
// console.log( this.href); | |
//}); | |
// | |
//$(".pdf a").each(function( index ) { | |
// console.log( this.href); | |
//}); | |
// inject lodash into page & using chrome snippit to save data to file | |
console.save(_.map($(".zip a"), function(f) { return f.href; }), "zipFileList.txt") | |
console.save(_.map($(".pdf a"), function(f) { return f.href; }), "pdfFileList.txt") | |
//Console | |
$ xargs -n 1 curl -O < ~/Downloads/zipFileList.txt | |
$ xargs -n 1 curl -O < ~/Downloads/pdfFileList.txt | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment