1.0.1 • Published 2 years ago

trustpilot-scraper v1.0.1

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

Trustpilot Scraper

trustpilot-scraper is a nodejs library whose aim is to help you scrap Trustpilots reviews very easily.

Instalation

Go to your project folder and run:

npm install trustpilot-scraper
# or 
yarn add trustpilot-scraper 

Usage

Let's scrap reviews from Github Trustpilot page.

const trustpilotScraper = require('trustpilot-scraper');

const scraper = trustpilotScraper("https://fr.trustpilot.com/review/github.com")

scraper.getReviews()
    .then((reviews) => {
        console.log(reviews);
    })
    .catch((err) => {
        console.log(err.message);
    });