Created
December 19, 2020 14:02
-
-
Save kenu/971d4354f09bd2490c7a69c69f1cb988 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
동영상 목록 페이지에서 데이터 추출하기
고맙습니다.