Get a random quote from Rick Riordan Books as an NPM Module
Installation
You can find the npm module here on
https://www.npmjs.com/package/rickriordanquotes
Just install the module using npm i rickriordanquotes
Usage
To include in CommonJS Module
const quotes =
To include in ES6 Module
Get All Quotes
//Prints a Array of Quotes and Title of the Bookconst allQuotes = quotesall;
Get Random Quote
//Prints a random Quote from the listconst randomQuote = quotes;
Scraping
I have also included the scrape.js file in the scrapper folder. I used Cheerio for scraping the GoodReads Page for the data.