We understand you can use some parameters such as hl that are passed through ${Constants.URLS.GOOGLE}search?q=${_query}&ie=UTF-8&aomd=1${(safe ? '&safe=active' : '')}&start=${page}.
Does this also support advanced search operators? We're trying to use allinurl in the following way:
const options = {
page: 0,
safe: false, // Safe Search
parse_ads: false, // If set to true sponsored results will be parsed
additional_params: {
// add additional parameters here, see https://moz.com/blog/the-ultimate-guide-to-the-google-search-parameters and https://www.seoquake.com/blog/google-search-param/
allinurl: "%22https%3A%2F%2Fdummy.*.com%2F%22" // Tried decoded
}
};
const response = await google.search('', options);
Assuming that would create${Constants.URLS.GOOGLE}search?q=allinurl:"https://dummy.*.com/"&....
But it doesn't seem to work. Passing something like const response = await google.search('"https://dummy.*.com/"', { ...allinurl: true }) returns the results without the additional search operator.
Other details
Latest version.
Checklist
[X] I am running the latest version.
[X] I checked the documentation and found no answer.
[X] I have searched the existing issues and made sure this is not a duplicate.
Question
Hey there, great library!
We understand you can use some parameters such as hl that are passed through
${Constants.URLS.GOOGLE}search?q=${_query}&ie=UTF-8&aomd=1${(safe ? '&safe=active' : '')}&start=${page}
.Does this also support advanced search operators? We're trying to use allinurl in the following way:
Assuming that would create
${Constants.URLS.GOOGLE}search?q=allinurl:"https://dummy.*.com/"&...
.But it doesn't seem to work. Passing something like
const response = await google.search('"https://dummy.*.com/"', { ...allinurl: true })
returns the results without the additional search operator.Other details
Latest version.
Checklist