Open h3litz opened 8 years ago
Yeah I have the same issue...
OK, so it looks like you are on a linux machine. I had the problem on a windows machine. Except I was having difficult with unicode '\u201c'. The problem is probably that your terminal does not support displaying that ascii code.
So I found, if I tried to print the unicode I was having trouble with at the python interpreter I got the same error. (I am doing this in Powershell).
Python 3.5.2 (v3.5.2:4def2a2901a5, Jun 25 2016, 22:01:18) [MSC v.1900 32 bit (Intel)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> print('\u201c')
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Python35\lib\encodings\cp850.py", line 19, in encode
return codecs.charmap_encode(input,self.errors,encoding_map)[0]
UnicodeEncodeError: 'charmap' codec can't encode character '\u201c' in position 0: character maps to <undefined>
>>> quit()
The solution on in Powershell is to switch the encoding to something that supports utf - the encoding used by googlescraper.
PS C:\Users\User\> chcp
Active code page: 850
PS C:\Users\User\> chcp 65001
Active code page: 65001
Doing this, the issue went away. So, you probably have to switch the encoding of your shell your using in linux to something else.
Here is a link to a stackoverflow question talking about this issue.
Oh,first thank you for you tool,i tried to use it than it make follow issues,is this my path problem?