Created
January 3, 2021 03:36
-
-
Save Konstantinusz/d591619cd99d60e80987207e41e72d29 to your computer and use it in GitHub Desktop.
Youtube lejátszási lista eleimeinek kikeresése a JavaScript konzolról
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
titles=Array.from(document.querySelectorAll("#video-title")).map(z=>z.innerText) | |
ids=Array.from(document.querySelectorAll("div#content a#thumbnail")).map(z=>(z.href.match(/\?v\=(.*?)\&/))[1]).splice(1,document.querySelectorAll("div#content a#thumbnail").length-1) | |
console.log(JSON.stringify(ids.map((z,i)=>[z,titles[i]]))) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment