node-cli-google
node-cli-google copied to clipboard
Search gives not correct results
Installed.
I'm on Mac OS v10.11.6
with oh-my-zsh
with node v4.5.0
and npm v2.15.9
.
And I see that in package.json
you have "npm": "^3.5.2",
dependency. Not sure why, and if it's related to issue.
Tested also with Node v6.4.0
and npm 3.10.3
.
I type
$ search node js development
Debugging file /usr/local/lib/node_modules/node-cli-google/lib/node-cli-google-1.2.2.js
:
var str = util.format(proto.rawUrl, proto.tld, proto.lang, 0, proto.totalResultSetNum);
console.log(str)
Result:
http://www.google.com/search?hl=undefined&q=0&start=node%2Cjs%2Cdevelopment&sa=N&num=%s&ie=UTF-8&oe=UTF-8
So is it util.format
issue or node-cli-google
?
BTW, CLI:
$ search node js development
0: http://rozklady.kzkgop.pl/index.php?co=rozklady&submenu=trasy&nr_linii=0 1: http://rozklady.kzkgop.pl/index.php?co=rozklady&submenu=trasy&nr_linii=T0 2: https://pl.wikipedia.org/wiki/0_(liczba) 3: http://www.mpk.poznan.pl/component/transport/0/ 4: http://www.kmplock.eu/rozklady/linia-0.html 5: https://play.google.com/store/apps/details?id=com.clearskyapps.fitnessfamily.PushupsPro 6: http://ekstraklasa.tv/skroty/korona-wisla-k-1-0-zobacz-skrot-meczu/2evp05 7: http://ekstraklasa.tv/skroty/piast-pogon-0-2-zobacz-skrot-meczu/ykqlcq prompt: Update selection (blank to accept)>>:
Note: I'm located in Poland/Krakow.
Also I did this:
$ cd /usr/local/lib/node_modules/node-cli-google/lib/
$ node node-cli-google-1.2.2.js node js development
Results the same (not correct).
And also installed ONLY locally via npm install node-cli-google
and using ./bin/search
symlink tried to search. Results the same.