Created
August 29, 2012 20:21
-
-
Save jcubic/3518347 to your computer and use it in GitHub Desktop.
log list of YouTube id and titles from playlist
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
console.log(Array.prototype.slice.call(document.querySelectorAll('.playlist-landing ol li a')).map(function(a) { return a.getAttribute('href').match(/(v=[^&]+)/)[1] + ' ' + a.innerHTML.match(/(class="title.*?)<\/span>/)[1].replace(/.*>/,''); }).join("\n")) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment