LuanRT / google-this

A simple yet powerful module to retrieve organic search results and much more from Google.
https://www.npmjs.com/package/googlethis
MIT License
320 stars 77 forks source link

Properly encode query string #55

Closed GregVS closed 1 year ago

GregVS commented 1 year ago

Queries with special characters are not properly encoded. Instead, encodeUriComponent() should be used to encode the query string. There is no need to call encodeUri() on the Google search url because all parameters are already encoded.

LuanRT commented 1 year ago

Thanks for the PR. Will get this published to NPM as soon as I set up automatic releases & fix the tests.