0.6.13 • Published 1 year ago

@monibrand/google-html-parser v0.6.13

Weekly downloads
-
License
GPL-v3
Repository
github
Last release
1 year ago

SERP Html Parser

SERP Html Parser can parse Google and Bing results pages to extract organic results, Ads and Shopping Ads.

Features

  • Parse Google SERP
  • Parse Bing SERP
  • Parse organic results with title and description
  • Extract Ads with title, content, target urls
  • Extract Shopping ads with images and target link
  • Can parse mobile pages
  • Back to the future parsing old page from 2016 ...
  • Use cheerio under the hood

Usage

const GoogleHtmlParser = require('google-html-parser');

let options = {
  searchEngine: 'google', // or bing
  detectText: ['Annonce', 'Ad', 'Annonce·', 'Ad·'] // You can add some other language for re-count feature
};
GoogleHtmlParser.parse(options, '<html>Your Google snapshot</html>', function(err, extractedDatas){
  console.log(extractedDatas);
});

GoogleHtmlParser.parse(options, '<html>Your Google snapshot</html>')
.then(parsedDatas => {
  console.log(parsedDatas);
});
0.6.13

1 year ago

0.6.10

1 year ago

0.6.12

1 year ago

0.6.11

1 year ago

0.6.9

1 year ago

0.6.7

2 years ago

0.6.6

2 years ago

0.6.8

2 years ago

0.6.5

3 years ago

0.6.4

3 years ago