Parses results from the HTML of google search page results into json.
var parser = require('google-search-results-parser')
parser.parseFile('./test/data/example.html');
parser.parseFile('./test/data/moto-g.html');
console.log(result);
});
-- This module takes as input the HTML from a google search results and return a json structure of the following form
query_string : "",
results : [
{
Domain :
Title
URL
Text
Extensions : {
PublishedBy : { // http://cl.ly/1D3J0F262o2E
Photo :
Who :
Date :
Followers :
}
SiteLinks : [ // http://cl.ly/3l0H1U390R0b
{
Title
URL
Text
}
..
]
}
}
...
]