We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
safeSearch is not respected by the scraper, it is returning same results for all cases
The text was updated successfully, but these errors were encountered:
What query are you using?
Sorry, something went wrong.
Here is the code I used, it prints same results for all the cases
const DDG = require('duck-duck-scrape'); let x = DDG.search('shit', { safeSearch: DDG.SafeSearchType.STRICT }).then((data) => { data["results"].forEach(element => { console.log(element.title, 'STRICT') }); }); let y = DDG.search('shit', { safeSearch: DDG.SafeSearchType.MODERATE }).then((data) => { data["results"].forEach(element => { console.log(element.title, 'MODERATE') }); }); let z = DDG.search('shit', { safeSearch: DDG.SafeSearchType.OFF }).then((data) => { data["results"].forEach(element => { console.log(element.title, 'OFF') }); });
b82b431
Thank you @Snazzah. It is working now with the new release, appreciate your work 👍
No branches or pull requests
safeSearch is not respected by the scraper, it is returning same results for all cases
The text was updated successfully, but these errors were encountered: