Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialmarkwolkenfelt
Courses Plus Student 34 PointsUse Node.js Google Play Store Scraper
Hey guys,
Probably a basic question, I am new to node.js and I am trying to use this scraper; https://github.com/facundoolano/google-play-scraper
I managed to use my terminal to install the tool & libraries, also npm test works fine.
However, how do I use their commands to get the data? They give an example of:
var gplay = require('google-play-scraper'); gplay.app({appId: 'com.dxco.pandavszombies'}) .then(console.log, console.log);
Do I have to create a new file?
Kind regards!
Mark
2 Answers
Iain Simmons
Treehouse Moderator 32,305 PointsYes, just put that code in a file and then run node app.js
(replacing app.js
with the name of/path to your file).
markwolkenfelt
Courses Plus Student 34 PointsThanks!