1.1.5 • Published 2 years ago
google-results v1.1.5
google-results
A node.js package used to retrieve an array of google results with links, descriptions, and titles.
Install
npm i google-results
Configure app
const google = require('google-results');
config = {
bannedWords: Array,
resultAmount: int
}
google('QUERY STRING', CONFIG (optional)).then(results => {
console.log(results)
})
Return Value
results = [
{
"title": string,
"href": string,
"description": string
}
]
Example
config = {
bannedWords: ['papa', 'hut', 'cheese']
resultAmount: 5
}
google('pizza', config).then(results => {
console.log(results)
})
Descriptions
// Optional Parameter
config = {
bannedWords: An array of words that will cause links to be excluded in they are included in the title.
resultAmount: This integer is the maximum number of links to be returned from your query. (max 10)
}