Created
September 24, 2020 08:24
-
-
Save Konark-Web/c0be6a4888b82728caf9b611e5903aec to your computer and use it in GitHub Desktop.
Facebook reposts parser for communities v2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var result = "\n"; | |
var INTERVAL = window.setInterval(function() { | |
window.clearInterval(INTERVAL); | |
var items = document.querySelectorAll('#jsc_c_13'); | |
for (var i=0; i < items.length; ++i) | |
{ | |
if (i == 0) { | |
continue; // skip author name | |
} | |
var accountName = items[i].querySelector('a span'); | |
result += accountName.textContent + '\n'; | |
} | |
console.log(result); | |
}, 700); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment