Last active
April 9, 2020 18:12
-
-
Save AndrewStanton94/7ffc3e88e5d531fb3916de194fbad565 to your computer and use it in GitHub Desktop.
Exporting my Youtube Watch Later list. This gets the URL and the title if you're in the 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
[...document.querySelectorAll('.yt-simple-endpoint.style-scope.ytd-playlist-video-renderer')] | |
.map((elem) => | |
`${elem.querySelector('#video-title').innerText} ${elem.href}` | |
.replace(/&list=WL.*/, '')) | |
.join('\n') |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment