Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

google-search-parser2

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

google-search-parser2 - npm Package Compare versions

Comparing version 0.0.3 to 0.0.4

2

package.json
{
"name": "google-search-parser2",
"version": "0.0.3",
"version": "0.0.4",
"description": "Parse image and Knowledge Graph data from Google Search results",

@@ -5,0 +5,0 @@ "main": "parser.js",

@@ -32,3 +32,3 @@ var htmlparser = require("htmlparser2");

title: attribs["aria-label"],
year: Number(attribs["title"].match(/(\d+)/g)[0])
year: Number(attribs["title"].match(/\((\d+)\)/)[1])
});

@@ -35,0 +35,0 @@ }

@@ -24,3 +24,3 @@ /*global describe, it, expect, jasmine */

it("returns expected result", function (done) {
iit("returns expected result", function (done) {
// arrange

@@ -34,4 +34,4 @@ var parser = new Parser(request);

var expected = {
title: "Super Mario World",
year: 1990
title: "Donkey Kong Country 2: Diddy's Kong Quest",
year: 1995
};

@@ -38,0 +38,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc