0.6.0 • Published 8 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-parser
or via yarn
$ yarn global add @sadorlovsky/google-search-parser
CLI
$ google-search-parser "nightmare async example"
Options
pages - pages count, default: 1
$ google-search-parser "nightmare async example" --pages 2
show - show browser window
$ google-search-parser "nightmare async example" --pages 2 --show
dev - show devtools
$ google-search-parser "nightmare async example" --pages 2 --show --dev
proxy - 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 3000
json - output in JSON format
$ google-search-parser "nightmare.js" --json > nightmare.json
Node.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