ogt / google-search-results-parser

Parses results from the HTML of google search page results into json.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

google-search-results-parser

Build Status

Parses results from the HTML of google search page results into json.

Usage:

  var parser = require('google-search-results-parser')
  parser.parseFile('./test/data/example.html');
  parser.parseFile('./test/data/moto-g.html');
    console.log(result);
  });

Result format:

-- 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
               }
               ..

           ]
        }

    }
    ...
]

About

Parses results from the HTML of google search page results into json.

License:MIT License


Languages

Language:JavaScript 100.0%