google-search-scrape
v0.2.5
Published
Get google search results for searches, news, images, and websites
Downloads
5
Readme
Google-Search-Scrape
Simple Web Scrape for Google Search, Images, News
Version
0.2.4
Installation
$ npm i --save google-search-scrape
Usage
// Return data as promises
var gss = require('google-search-scrape');
var query = 'cats';
// Returns promise with website link (String)
gss.getWebsite(query)
.then(function(response) { console.log(response) });
// "link"
// Returns promise with array of Searches (Object)
gss.getSearch(query)
.then(function(response) { console.log(response) });
// [{ link: "link", description: "description" }, ...]
// Returns promise with array of news (Object)
gss.getNews(query)
.then(function(response) { console.log(response) });
// [{ link: "link", description: "description" }, ...]
// Returns promise with all images in array (Array)
gss.getImages(query)
.then(function(response) { console.log(reponse) });
// ["link","link", ...]
License
MIT