Last active
April 2, 2020 15:06
-
-
Save u-l-y/65d9f536008577cc20f0e33dd5aa1c4d to your computer and use it in GitHub Desktop.
Extract Youtube IDs from a Playlist (in console)
This file contains hidden or 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
const videos = [ | |
...document.querySelectorAll( | |
'.yt-simple-endpoint.ytd-playlist-video-renderer' | |
) | |
].map( | |
v => | |
v | |
.getAttribute('href') | |
.split('=')[1] | |
.split('&')[0] | |
); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment