Some handy methods for Wikiquote
npm install --save wikiquote
wikiquote
.searchPeople('steve jobs')
.then(page => wikiquote.getRandomQuote(page.title))
.then(quote => console.log(quote))
You always have to keep pushing to innovate. Dylan could have
sung protest songs forever and probably made a lot of money,
but he didn’t. He had to move on, and when he did, by going
electric in 1965, he alienated a lot of people. His 1966 Europe
tour was his greatest…. The Beatles were the same way. They kept
evolving, moving, refining their art. That’s what I’ve always
tried to do — keep moving. Otherwise, as Dylan says, if you are
not busy being born, you’re busy dying.
As quoted in Steve Jobs (2011) by Walter Isaacson, p. 570
The search terms used to query wikiquote
Type: string
Examples:
- Person Name
- Book Title
- Movie Title
The search terms used to query page titles
Type: string
The search terms used to query people
Type: string
The title of the wikiquote page
Type: string
The title of the wikiquote page
Type: string
The title of the wikiquote page
Type: string
List all the quotes on a given page
Type: string
You can also provide a set of options to each method to customize the query and results.
Type: object
Example:
{
language: 'en'
}
The language code to search with
Type: string
For a list of available language codes see https://meta.wikimedia.org/wiki/Wikiquote#List_of_Wikiquotes
MIT © Forrest Desjardins