Created
November 26, 2015 02:00
-
-
Save CVertex/c9ffd044375f31598f47 to your computer and use it in GitHub Desktop.
Extract TestFlight user email addresses from iTunes Connect
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 text = ''; | |
$('.itc-tester-view tbody tr').each(function(index, el) { | |
var email = el.querySelector('td:nth-child(2) span:first-child').innerText; | |
var name = el.querySelector('.sorted > span').innerText.split(' '); | |
text = text + name[0] + ', ' + name[1] + ', ' + email+'\n'; | |
}); | |
var a = document.createElement("a"); | |
var file = new Blob([text], {type: 'text/csv'}); | |
a.href = URL.createObjectURL(file); | |
a.download = name; | |
a.click(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment