0.6.0 • Published 9 years ago
@sadorlovsky/google-search-parser v0.6.0
google-search-parser 
grab urls from google search page
Install
via npm
$ npm install -g @sadorlovsky/google-search-parseror via yarn
$ yarn global add @sadorlovsky/google-search-parserCLI
$ google-search-parser "nightmare async example"Options
pages - pages count, default: 1
$ google-search-parser "nightmare async example" --pages 2show - show browser window
$ google-search-parser "nightmare async example" --pages 2 --showdev - show devtools
$ google-search-parser "nightmare async example" --pages 2 --show --devproxy - set an http proxy
$ google-search-parser "nightmare.js" --proxy "localhost:8000"timeout - set a timeout, default: 1000
$ google-search-parser "nightmare.js" --proxy "localhost:8000" --timeout 3000json - output in JSON format
$ google-search-parser "nightmare.js" --json > nightmare.jsonNode.js
import parser from '@sadorlovsky/google-search-parser'
parser('nightmare async example', {
pages: 2,
show: true,
dev: true,
proxy: 'localhost:8000',
timeout: 3000
}).then(res => console.log(res))License
MIT © Zach Orlovsky