1.7.8 • Published 6 years ago

quote-scraper v1.7.8

Weekly downloads
3
License
MIT
Repository
github
Last release
6 years ago

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')); 
1.7.8

6 years ago

1.7.7

6 years ago

1.7.6

6 years ago

1.7.5

6 years ago

1.6.5

6 years ago

1.6.4

6 years ago

1.6.2

6 years ago

1.6.1

6 years ago

1.6.0

6 years ago

1.5.0

6 years ago

1.0.0

6 years ago