unrelenting.technology

WebInspectorScrapingSnippets

Get YouTube links:

console.log(Array.from(new Set(Array.prototype.map.call(document.querySelectorAll("a[href^='https://www.youtube.com/watch']"), x => x.href))).map(x => `"${x}"`).join(' '))

Published

Categories and tags

KB

Post your response

If you write a response on your website, mark it up with h-entry and let me know the URL: