Closed imranbarbhuiya closed 2 years ago
Hey @imranbarbhuiya , you can use the 'safe' option in the constructor.
const google = new Scraper({
puppeteer: {
safe: true
},
});
Ty got it
hey what this option does? i tought it will filter nsfw images but it isn't doing that.
I've tried like this but it isn't working. var Scraper = require("images-scraper"); const google = new Scraper({ puppeteer: { safe: true, headless: true, }, });
hey what this option does? i tought it will filter nsfw images but it isn't doing that.
this option uses the safe search feature from google, it's the same as turning it on on your browser. the google safe search feature tries to filter off contents that google understands as NSFW with an artificial intelligence, so it may not be 100% safe after all.
Add a filter for nsfw words. Also if it is safe mode then please give an example that where should i use the options.