Created
June 11, 2018 06:23
-
-
Save ChristopherA/45f7e1a74445dde6573e4a8b012aab5f to your computer and use it in GitHub Desktop.
grab facebook friend URLs
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 friends = document.querySelectorAll('._698 > div > a'); | |
urls = []; | |
for (var i = 0, len = friends.length; i < len; i++) { | |
urls.push(friends[i].href); | |
} | |
JSON.stringify(urls); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment