So what I want to do is, I want to scrap application details in google play using this package. Then I want to save my scrap result in json object file using this package.I have tried to code, but the problem is I can't return the scrap result into a json file. Here's my code:var gplay = require('google-play-scraper'); var jsonfile = require('jsonfile') var file = 'data.json' var obj = gplay.search({ term: "fake gps", num: 2 }).then(console.log,console.log) jsonfile.writeFile(file, obj, function (err) { console.error(err) }) Can anyone tell me what I code wrong.
Submitted July 12, 2017 at 03:45AM by freakcage
No comments:
Post a Comment