javascript - how can i do google image search by image file(Not URL) with node.js? -
i've looked around long, never resolve.
this 1 condition,not using "google custom api".
i did searched way, couldn't resolve yet.
this way tried.
`var client = require('cheerio-httpcli'); var word = 'http://kusatsuonsen.net/wp-content/uploads/2008/07/dsc_7661.jpg'; client.fetch('https://www.google.com/searchbyimage?site=search&sa=x&image_url' , { q: word }, function (err, $, res) { console.log(res.headers); console.log($('title').text()); ('a').each(function (idx) { console.log($(this).attr('href')); }); });`
how can do?
is there way so, if can point me in right direction, can't seem started.
Comments
Post a Comment