mardi 31 mars 2015

how can i do google image search by image file(Not URL) with node.js?

I've looked around so long, but never resolve.


this is with one condition,not using "Google custom API".


I DID searched some way, but i couldn't resolve yet.


this is the way i tried.



`var client = require('cheerio-httpcli');
var word = 'http://ift.tt/1Cvk400';
client.fetch('http://ift.tt/1DqMWbU'
, { q: word },
function (err, $, res) {
console.log(res.headers);
console.log($('title').text());
('a').each(function (idx) {
console.log($(this).attr('href'));
});
});`


how can i do?


Is there any way to do so, if so can anybody point me in the right direction, i just can't seem to get started.


Aucun commentaire:

Enregistrer un commentaire