google-play-scraper
google-play-scraper copied to clipboard
Older projects running on commonJS cannot update to the latest google-play-scraper code base
ESM is great when possible, but we have a lot of projects running on commonJS
As a result, they cannot import properly.
Would be great to have a script to open up the ability for both options.
This PR does exactly that: https://github.com/facundoolano/google-play-scraper/pull/722
Check if this fixed in the latest version.
It has not - not possible to import
I will update and re-open the above pr which did work
In case you missed it, you can use require('esm') since node v22 or v20.17.
const gplay = require("google-play-scraper");
gplay.default
.app({ appId: "com.google.android.apps.translate" })
.then(console.log, console.log);
// or
const { default: gplay } = require("google-play-scraper");
gplay
.app({ appId: "com.google.android.apps.translate" })
.then(console.log, console.log);