Skip to content

Instantly share code, notes, and snippets.

@kingbin
Created March 13, 2014 22:11
Show Gist options
  • Save kingbin/9538133 to your computer and use it in GitHub Desktop.
Save kingbin/9538133 to your computer and use it in GitHub Desktop.
Download resources from Vegas VS live 2014
// 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