Closed alexisakov closed 3 years ago
googlenew.search('МАЗ') does not return results.
However, encoding the string into the CP1251 works is per this SO: https://stackoverflow.com/questions/24234987/urlencode-cyrillic-characters-in-python
May be you should add search key encoding before consutructing the URL:
from urllib import request
key = request.quote(key.encode('cp1251'))
New version is release with encoding setting.
googlenew.search('МАЗ') does not return results.
However, encoding the string into the CP1251 works is per this SO: https://stackoverflow.com/questions/24234987/urlencode-cyrillic-characters-in-python
May be you should add search key encoding before consutructing the URL:
from urllib import request
key = request.quote(key.encode('cp1251'))