Skip to content

Instantly share code, notes, and snippets.

@mixj93
Last active December 24, 2018 12:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mixj93/efb01259dac336b8a9b9e921d91c3ca7 to your computer and use it in GitHub Desktop.
Save mixj93/efb01259dac336b8a9b9e921d91c3ca7 to your computer and use it in GitHub Desktop.
geektime
let list = document.querySelectorAll('.article-item-wrapper');
let res = '';
for (let i = 0; i < list.length; i++) {
let item = list[i];
let name = item.querySelector('.article-item-title').innerText;
let url = item.querySelector('.article-item-more-text').href;
res += `${i} ${name} ${url}\n\n`;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment