turist_ua

linkedin search

Oct 10th, 2018
150
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. da_nodes = document.getElementsByClassName('search-result__occluded-item ember-view');
  2. for(let i = 0; i < da_nodes.length; i++){
  3.       let link = da_nodes[i].getElementsByClassName('search-result__result-link ember-view').item(0),
  4.  ndRow = da_nodes[i].getElementsByClassName('subline-level-1').item(0).innerText,
  5. position = ndRow.split(' at ')[0],
  6. company = position === ndRow ? '' : ndRow.split(' at ')[1],
  7.  rows = [
  8. link.innerText, link.href,
  9. position, company,
  10. da_nodes[i].getElementsByClassName('subline-level-2').item(0).innerText
  11. ];
  12. da_people.push(rows.join(';'));
  13. } console.log(da_people.length);
Add Comment
Please, Sign In to add comment