Write a simple script
- Login to mi cloud https://i.mi.com
- Navigate to https://us.i.mi.com/#record
- In web browser (Chrome) press F12 to open Chrome developer tool
- Navigate to Console
- Select the Record frame
- Paste all the code and press Enter
- Click 允許 if browser asks for the permission of 下載多個檔案
- Wait until all the files are downloaded
So $checkboxes.length don't work
Working code on 29.03.2021
function sleep(ms) {$checkboxes = $ ("em[class*='checkbox']");$downloadbtn = $ ("div[class='button fl-l download']");
return new Promise(resolve => setTimeout(resolve, ms));
}
async function batchdownload() {
var
var
var $deselectbtn = $("div[class='button fl-r unselect']");
for(var i = 0; i < 99999; i++) {
$checkboxes[i].click();
await sleep(1000);
$downloadbtn.click();
await sleep(3000);
$deselectbtn.click();
await sleep(1000);
}
}
batchdownload();