Skip to content

Instantly share code, notes, and snippets.

@mcdado
Last active August 29, 2015 14:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mcdado/7a1af1de94aa12b5bc70 to your computer and use it in GitHub Desktop.
Save mcdado/7a1af1de94aa12b5bc70 to your computer and use it in GitHub Desktop.
wwdc-extract-titles.js
var sessions = [];
jQuery("li.session").each(function () {
var current = jQuery(this),
session = {
'id' : current.attr("id").toString().replace('-video', ''),
'title' : current.find(".title").text(),
'description' : current.find(".description p:nth-child(2)").text(),
'track' : current.find(".track").text()
};
sessions.push(session);
});
sessions.sort(function (a, b) {
return a.id - b.id;
});
jQuery(sessions).each(function () {
console.log(this.id + ". " + this.title)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment