Skip to content

Instantly share code, notes, and snippets.

@larsparendt
Created October 19, 2015 08:53
Show Gist options
  • Save larsparendt/a67d25b1611db67ba67b to your computer and use it in GitHub Desktop.
Save larsparendt/a67d25b1611db67ba67b to your computer and use it in GitHub Desktop.
Extract TestFlight user email addresses from iTunes Connect
var text = ''; $('.col-email').each(function(index,el) { text = text + ($.trim($(el).text())+'\n' )}); var a = document.createElement("a"); var file = new Blob([text], {type: 'text/csv'}); a.href = URL.createObjectURL(file); a.download = name; a.click();
@vinkla
Copy link

vinkla commented Apr 14, 2016

I've updated the script to work in our use case:

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();

@ddfreiling
Copy link

This works with latest update (11/4/17) to iTunesConnect, where testers are in custom groups.
Also fetches all the testers for you, no need to paginate through them all.
https://gist.github.com/ddfreiling/a408904e6837387cd48c8a1c4d56e6fe

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment