Skip to content

Instantly share code, notes, and snippets.

@sbounmy
Created October 27, 2016 14:24
Show Gist options
  • Save sbounmy/0b5036cd432efb8a0bbf066759b6f9ea to your computer and use it in GitHub Desktop.
Save sbounmy/0b5036cd432efb8a0bbf066759b6f9ea to your computer and use it in GitHub Desktop.
js scrap slack users
// make sure youve scrolled all users on page
// Email
$('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