google-search-parser2
Advanced tools
Comparing version 0.0.3 to 0.0.4
{ | ||
"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 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10577