Forked from mandyklingbeil/extract-testflight.js
Last active
January 28, 2017 19:36
-
-
Save sskylar/23e234eac8399517105161d32112e119 to your computer and use it in GitHub Desktop.
Extract TestFlight user email addresses from iTunes Connect
This file contains hidden or 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 you scroll down to get all data loaded | |
var text = ''; | |
$('.col-email').each(function(index,el) { | |
if (index == 0) { | |
text = 'Email, First Name, Last Name, Status, Date\n'; | |
} | |
else { | |
text = text + $.trim($(el).find("a").text()) + ','; | |
//First Name | |
text = text + $.trim($($($($('.col-name')[index]).find("span")[0]).find("span")[0]).text()) + ','; | |
//Last Name | |
text = text + $.trim($($($($('.col-name')[index]).find("span")[0]).find("span")[1]).text()) + ','; | |
//Status | |
text = text + $.trim($($($('.col-status')[index]).find("span")[0]).text()) + ','; | |
//Date | |
text = text + $.trim($($($('.col-status')[index]).find("span")[2]).text()).replace(',', '') + '\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