Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
var items = document.querySelectorAll('li.ArticleItem');
var articles = new Array();
items.forEach(element => {
var href = element.childNodes[0].href;
var title = element.childNodes[0].childNodes[0].innerText;
articles.push([href, title]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.