Skip to content

Instantly share code, notes, and snippets.

@theuves
Created August 1, 2018 18:28
Show Gist options
  • Save theuves/29555df4617f9e0cee97ca86cd41e231 to your computer and use it in GitHub Desktop.
Save theuves/29555df4617f9e0cee97ca86cd41e231 to your computer and use it in GitHub Desktop.
Em video do YT, pegar o nome de todos os videos de uma playlist.
console.log(Array.from(document.querySelectorAll(".style-scope.ytd-playlist-panel-video-renderer span")).map(el => el.title.trim()).filter(Boolean).join("\n"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment