google-search-parser2
Parse image and Knowledge Graph data from Google Search results
Usage
Fetch Knowledge Graph Carousel results
var request = require("request");
var Parser = require("google-search-parser2");
var parser = new Parser(request);
var searchTerm = "snes games";
parser.parseKnowledgeGraphCarousel(searchTerm, function (results) {
console.log(results);
});
Fetch Knowledge Graph Panel results
var request = require("request");
var Parser = require("google-search-parser2");
var parser = new Parser(request);
var searchTerm = "Super Mario World";
parser.parseKnowledgeGraphPanel(searchTerm, function (result) {
console.log(result);
});
Fetch image URLs
var request = require("request");
var Parser = require("google-search-parser2");
var parser = new Parser(request);
var searchTerm = "Super Mario World";
parser.parseImageUrls(searchTerm, function (urls) {
console.log(urls);
});