google-place-reviews-lib

1.0.3 • Public • Published

Google Place Review Library

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.

Installation

To install the library, run the following command:

npm install google-place-reviews-lib

Usage

To use the library, follow the example below:

Common JS Module

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);
    });

Getting Full Place Details (ES6 Module)

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);
    });

Contact

For any inquiries, please contact me at: hammadfromksa@gmail.com

/google-place-reviews-lib/

    Package Sidebar

    Install

    npm i google-place-reviews-lib

    Weekly Downloads

    0

    Version

    1.0.3

    License

    MIT

    Unpacked Size

    6.19 kB

    Total Files

    3

    Last publish

    Collaborators

    • humxmad