Created
July 10, 2022 06:49
-
-
Save h1ddengames/a8750193b2a51c64f3a06c4b431b165c to your computer and use it in GitHub Desktop.
Youtube Playlist Extractor
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
document.querySelectorAll('a#video-title[href]').forEach(function(element, currentIndex, listObj) { | |
console.log(currentIndex + ': ' + element.innerText + ' : ' + element); | |
}) | |
VM5670:2 0: Top 10 SCARY Ghost Videos To SEND YOU RUNNIN' : https://www.youtube.com/watch?v=Yc64zWKIdi0 | |
^ Console text | |
^ currentIndex | |
^ innerText (Title) | |
^ (Separator) | |
^ element (Link) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment