pevers / images-scraper

Simple and fast scraper for Google
ISC License
224 stars 69 forks source link

No result. #20

Closed azarus closed 4 years ago

azarus commented 7 years ago

Not working?

var Scraper = require('google-images-scraper');

var scraper = new Scraper({
    keyword: 'banana',
    rlimit: 10  // 10 p second 
});

scraper.list(10).then(function (res) {
    console.log(res);
}).catch(function(err)
{
  console.log(err);
});

The output:

[ undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined,
  undefined ]

Also no errors? What am i doing wrong?

azarus commented 7 years ago

Oh looks like its a different or older project on npm: https://www.npmjs.com/package/google-images-scraper

Please do something about its ince its the first one i found on google :D

Installed the correct package and now works like charm 💃

pevers commented 7 years ago

Thanks! Ill fix it, this is indeed an old version.