Konark

Facebook reposts parser for communities v2

Sep 24th, 2020
773
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var result       = "\n";
  2.  
  3. var INTERVAL = window.setInterval(function() {
  4.       window.clearInterval(INTERVAL);
  5.       var items = document.querySelectorAll('#jsc_c_13');
  6.       for (var i=0; i < items.length; ++i)
  7.       {
  8.         if (i == 0) {
  9.             continue; // skip author name
  10.         }
  11.  
  12.         var accountName = items[i].querySelector('a span');
  13.         result += accountName.textContent + '\n';
  14.       }
  15.  
  16.       console.log(result);
  17. }, 700);
RAW Paste Data