Skip to content

Instantly share code, notes, and snippets.

@kenu
Created December 19, 2020 14:02
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save kenu/971d4354f09bd2490c7a69c69f1cb988 to your computer and use it in GitHub Desktop.
Save kenu/971d4354f09bd2490c7a69c69f1cb988 to your computer and use it in GitHub Desktop.
extract youtube list
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));
});
@Jason-time
Copy link

동영상 목록 페이지에서 데이터 추출하기
고맙습니다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment