Forked from kenu/gist:971d4354f09bd2490c7a69c69f1cb988
Created
December 19, 2020 17:35
-
-
Save Jason-time/e1a9337e9b898ec79618f3107aba0a9d to your computer and use it in GitHub Desktop.
extract youtube list
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
var items = document.querySelectorAll('[id=dismissable]') | |
items.forEach(item => { | |
var data = { | |
title: item.children[1].children[0].children[0].innerText, | |
link: item.children[1].children[0].children[0].children[1].href, | |
meta: item.children[1].children[0].children[1].innerText | |
}; | |
console.log(JSON.stringify(data)); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment