Skip to content

Instantly share code, notes, and snippets.

@sunnyyoung
Created August 5, 2022 10:08
Show Gist options
  • Save sunnyyoung/329e991def44aace9aedb3a675a9bb07 to your computer and use it in GitHub Desktop.
Save sunnyyoung/329e991def44aace9aedb3a675a9bb07 to your computer and use it in GitHub Desktop.
Export Apple Developer Devices
var data = document.querySelectorAll(".infinite-scroll-component .row");
var output = "Device ID Device Name\n"
for (var i = 1; i < data.length; i++) {
let identifier = data[i].childNodes[1].childNodes[0].textContent;
let name = data[i].childNodes[0].childNodes[0].textContent;
output += [identifier, name].join(" ") + "\n";
}
console.log(output);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment