Closed walrus543 closed 7 months ago
Solved (thanks to karandpr on XDA developers forum):
import https from 'https';
import fs from 'fs';
import gplay from "google-play-scraper";
let appIdArray = [
'com.android.chrome', 'com.google.android.googlequicksearchbox'
];
for(let i = 0; i < appIdArray.length ; i++ ){
gplay.app({appId: appIdArray[i]})
.then(function(res){
console.log(res);
let file = fs.createWriteStream(res.appId + ".png");
let request = https.get(res.icon, function(response) {
response.pipe(file);
});
}).catch(function(err){
console.error(err);
});
}
{
"type": "module",
"dependencies": {
"google-play-scraper": "^10.0.0"
}
}
Description:
I'm not a dev but I'm used to using this tool to download original app icons. A similar bug was reported #668 but I don't understand which solution you recommend. Many thanks for your help.
Example code:
My getPic.js file:
Error message: