Skip to content

Instantly share code, notes, and snippets.

@Konark-Web
Created September 24, 2020 08:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Konark-Web/c0be6a4888b82728caf9b611e5903aec to your computer and use it in GitHub Desktop.
Save Konark-Web/c0be6a4888b82728caf9b611e5903aec to your computer and use it in GitHub Desktop.
Facebook reposts parser for communities v2
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