Advertisement
turist_ua

arab health single

Jan 22nd, 2020
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var da_companies = []; var da_nodes = document.getElementsByClassName('node node-booth node-teaser view-mode-teaser');
  2.  
  3.         for (let i = 0; i < da_nodes.length; i++) {
  4.             let rows = [
  5.                 da_nodes[i].querySelector("div.booth-location-numbers"),
  6.                 da_nodes[i].querySelector("div.section-two > h3 > a"),
  7.                 da_nodes[i].querySelector("div.section-two > p")
  8.             ];
  9.  
  10.             booth = rows[0] && rows[0].innerText;
  11.             company = rows[1] && rows[1].innerText;
  12.             url = rows[1] && rows[1].href;
  13.             description = rows[2] && rows[2].innerText.replace(/[\W_]+/g," ");;
  14.  
  15.             company = [booth, company, url, description];
  16.  
  17.             da_companies.push(company.join(';'));
  18.         }
  19.  
  20. copy(da_companies.join('\n'))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement