A library to scrape Google reviews using place ID.
Disclaimer: This library is not an official Google product and is not endorsed by or affiliated with Google in any way. Use it at your own risk.
To install the library, run the following command:
npm install google-place-reviews-lib
To use the library, follow the example below:
const googlePlaceReview = require('google-place-reviews-lib')
const placeId = 'ChIJBQ7rBiL9Lj4R-xOallZB-fA'; // Example Google Place ID
googlePlaceReview(placeId)
.then(reviews => {
console.log(reviews);
})
.catch(error => {
console.error(error);
});
To get the full details of a Google Place, you can use my other library, google-place-detail-lib
. Install it using the following command:
npm install google-place-detail-lib
Here is an example of how to use it:
import googlePlaceDetail from 'google-place-detail-lib';
const placeId = 'ChIJBQ7rBiL9Lj4R-xOallZB-fA'; // Example Google Place ID
googlePlaceDetail(placeId)
.then(placeDetails => {
console.log(placeDetails);
})
.catch(error => {
console.error(error);
});
For any inquiries, please contact me at: hammadfromksa@gmail.com