Nv7-GitHub / googlesearch

A Python library for scraping the Google search engine.
https://pypi.org/project/googlesearch-python/
MIT License
480 stars 117 forks source link

Problems with cyrillic symbols #84

Closed Roman223 closed 2 months ago

Roman223 commented 3 months ago

The output from following function from urllib in search function returns nonsence if terms have cycillic symbols.

escaped_term = urllib.parse.quote_plus(term,)

Passing encoding (utf8) doesn't solve problem. For my case, I just replaced this row with escaped_term = term.

Nv7-GitHub commented 2 months ago

Fixed in the next release! I realized that Requests automatically encodes it so this line doesn't even need to exist.