Skip to content

Instantly share code, notes, and snippets.

@konradhalas
Last active October 1, 2015 14:41
Show Gist options
  • Save konradhalas/b8bcbac17b78e3a39cba to your computer and use it in GitHub Desktop.
Save konradhalas/b8bcbac17b78e3a39cba to your computer and use it in GitHub Desktop.
var LICENSE = 'License: For reuse of this video under a more permissive license please get in touch with us. The speakers retain the copyright for their performances.';
var WEBSITE = 'http://summit.pywaw.org';
var result = [];
$(".speaker-modal").each(function() {
var $speakerModal = $(this);
var $talkDetails = $speakerModal.find('.speaker-modal__talk-title');
var speakerName = $speakerModal.find('.speaker-modal__name').text();
var speakerBio = $speakerModal.find('p:not(.speaker-modal__twitter)').first().text();
var mixedTalksDescription = $speakerModal.find('p:not(.speaker-modal__twitter)').slice(1).text();
$talkDetails.each(function () {
var $talkTitle = $(this);
var talkTitle = $talkTitle.text().replace('Talk: ', '').replace('Keynote: ', '');
result.push(speakerName + ': ' + talkTitle + '- PyWaw Summit 2015');
result.push('Talk: ' + talkTitle);
});
result.push('');
result.push(mixedTalksDescription);
result.push('');
result.push('Speaker: ' + speakerName + '. ' + speakerBio);
result.push('');
$talkDetails.each(function () {
var $talkTitle = $(this);
var talkSlidesURL = $talkTitle.find('a.slides').attr('href');
result.push('Slides: ' + talkSlidesURL);
result.push('');
});
result.push(LICENSE);
result.push('');
result.push(WEBSITE);
result.push('**********************');
});
console.log(result.join('\n'));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment