quote-scraper

1.7.8 • Public • Published

quote-scraper Build Status codecov Maintainability

A npm package to get famous quotes in english, spanish, french and brazilian portuguese.

Installation

npm i -S quote-scraper

Usage

var quoteScraper = require('quote-scraper');
 
// quote-scraper gives you an array with famous quote from someone. 
// Just give the name (case insensitive) 
// and you will get quotes in english.
console.log(quoteScraper('Agatha Christie')); 
 
// You can also get quotes in spanish.
console.log(quoteScraper('mark twain', 'es')); 
 
// In french.
console.log(quoteScraper('mark twain', 'fr')); 
 
// And brazilian portuguese.
console.log(quoteScraper('mark twain', 'pt_br')); 
 
// Using pt_br you can give a number of page to get more quotes. 
// Do not worry about a big number. 
// The library will handle it automatically.
console.log(quoteScraper('mark twain', 'pt_br', 5)); 
 
// You can use 'max' to get the maximum number of quotes.
console.log(quoteScraper('mark twain', 'pt_br', 'max')); 
 

Readme

Keywords

Package Sidebar

Install

npm i quote-scraper

Weekly Downloads

0

Version

1.7.8

License

MIT

Unpacked Size

8.21 kB

Total Files

6

Last publish

Collaborators

  • edgarpf