Export devices added in Apple's iOS Provision portal

后端 未结 10 1443
予麋鹿
予麋鹿 2020-12-25 14:41

My apple developer is about to expire in 5 days. And after renewal I want to restore my devices count to 100 but meanwhile I want to export all currently added devices as ba

10条回答
  •  梦谈多话
    2020-12-25 15:05

    Looks like the webpage structure has been edited a little since the latest response. My new snippet also formats the output as CSV, so you can save the output and open it with Numbers/Excel and share it.

    var data = document.querySelectorAll(".infinite-scroll-component .row");
    var csvOutput = "Name, Identifier, Type\n"
    
    for (var i = 1; i < data.length; i++) {
        let name = data[i].childNodes[0].childNodes[0].textContent;
        let identifier = data[i].childNodes[1].childNodes[0].textContent;
        let type = data[i].childNodes[2].childNodes[0].textContent;
        let device = [name, identifier, type].join(", ") + "\n";
        csvOutput += device;
    }
    
    console.log(csvOutput);

提交回复
热议问题