SHARE
TWEET

Untitled

a guest Aug 25th, 2019 72 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var container = document.querySelector("#content > table > tbody > tr > td.borderClass > div");
  2. container.querySelectorAll("h2 ~ div").forEach(function(entry) {
  3.     var category = entry.querySelector("span.dark_text");
  4.     if (category) {
  5.         var key = category.textContent.trim().slice(0, -1).toLowerCase();
  6.         var value = category.nextSibling.textContent.trim();
  7.        
  8.         console.log(key + " => " + value);
  9.     }
  10. })
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top