google-it
A simple library to convert Google search results to JSON output, with an interactive display option coming in the near future.
Install
$ npm install --save -g @schneehertz/google-it
Example Usage
$ google-it --query="Latvian unicorn"
Prevent display in the terminal, and save results to a JSON file:
$ google-it --query="PWAs with react-router and redux" -o results.json -n
$ google-it --query="open whisper systems" -O 5
$ google-it --query="mechanical turk" --only-urls
Command Line Arguments
Programmatic Use in NodeJS environment
const googleIt = require('@schneehertz/google-it')
googleIt({'query': 'covfefe irony'}).then(results => {
}).catch(e => {
})
const options = {
'proxy': 'http://localhost:8118'
};
const additionalQueryParam = {
lr: 'lang_zh-CN',
cr: 'countryCN'
}
googleIt({options, 'query': 'covfefe irony', additionalQueryParam, disableConsole: true}).then(results => {
}).catch(e => {
})