Parse image and Knowledge Graph data from Google Search 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); // [ { title: "Super Mario World", year: 1990 }, { title: "Chrono Trigger" ...
});
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); // { title: "Super Mario World", genre: "Platform game", developers: [ "Nintendo" ] ...
});
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); // [ { url: "https://upload.wikimedia.org/wikipedia/en/f/f4/Supermarioworld.jpg", caption: "foo", dimensions: "320x240" }, { url: "http ...
});