Skip to content

Instantly share code, notes, and snippets.

@palaniraja
Last active May 25, 2019 14:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save palaniraja/5791619 to your computer and use it in GitHub Desktop.
Save palaniraja/5791619 to your computer and use it in GitHub Desktop.
WWDC 2013 download goodies.
jQuery("li.session").each (function(idx, elem){
id = parseInt($(elem).id);
title = jQuery(elem).find('.title').text();
track = jQuery(elem).find('li.track').text();
date = jQuery(elem).find('li.date').text();
as = jQuery(elem).find('p.download a');
hd = sd = pdf = 'NONE AVAILABLE';
for(i=0; i<as.length; i++){
t = jQuery(as[i]).text();
href = jQuery(as[i]).attr('href');
if (t == 'SD') {
sd = href;
}else if (t == 'HD'){
hd = href;
}else if (t == 'PDF'){
pdf = href;
}
}
console.log([id, title, track, date, sd, hd, pdf].join("\t"))
});
@palaniraja
Copy link
Author

Spreadsheet version of the output is at http://goo.gl/cXcHm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment