Last active
May 25, 2019 14:31
-
-
Save palaniraja/5791619 to your computer and use it in GitHub Desktop.
WWDC 2013 download goodies.
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
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")) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Spreadsheet version of the output is at http://goo.gl/cXcHm