images-scraper
images-scraper copied to clipboard
Scrape mehod always returns empty array
I was using this package to grab image links. Even the sample code is not working returns empty array. What could be the problem?
var Scraper = require('images-scraper');
const google = new Scraper({
puppeteer: {
headless: false,
},
//safe : false,
//userAgent: 'Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)', // the user agent
});
(async () => {
const results = await google.scrape('banana', 5);
console.log('results', results);
})();