Created
October 27, 2016 14:24
-
-
Save sbounmy/0b5036cd432efb8a0bbf066759b6f9ea to your computer and use it in GitHub Desktop.
js scrap slack users
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
// make sure youve scrolled all users on page | |
$('a[title~="Email"]').map(function(i, e) { | |
return e.text; | |
}).toArray().join('\n') | |
// first name | |
$('.member_name').map(function(i, e) { | |
return e.text.split(' ')[0]; | |
}).toArray().join('\n') | |
// last name | |
$('.member_name').map(function(i, e) { | |
return e.text.split(' ').slice(1, 10).join(' '); | |
}).toArray().join('\n') | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment