Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UnicodeEncodeError: 'charmap' codec can't encode character #216

Open
SnowHow21 opened this issue Aug 25, 2018 · 2 comments
Open

UnicodeEncodeError: 'charmap' codec can't encode character #216

SnowHow21 opened this issue Aug 25, 2018 · 2 comments

Comments

@SnowHow21
Copy link

Hey,
thanks for this awesome scraper, I appreciate it a lot. However, when I try to use keywords.txt or just a keyword such as "EXAMPLE, s.r.o., kontakt email tel. c." I get "UnicodeEncodeError: 'charmap' codec can't encode character '\u010d' in position 76: character maps to ". Further it shows "File "c:\users...\anaconda3\lib\encodings\cp1252.py", line 19, in encode return codecs.charmap_encode(input,self.errors,encoding_table)[0]"
I have no idea what it could be but maybe itmight be some kind of problem with encoding?
Thanks!

@SnowHow21
Copy link
Author

Okay, so there is no problem if the result is showed in the terminal or exported to anything else other than CSV. I also tried to change the encoding of the csv file to UTF-8 before running the scraper; however, it didn't help.

NikolaiT pushed a commit that referenced this issue Aug 27, 2018
@NikolaiT
Copy link
Owner

Hey

Keyword files submitted with the command line argument --keyword-file KEYWORD_FILE must be UTF-8 encoded. Can you please try again and make sure your keyword file is in UTF-8?

Please pull the newest source from GoogleScraper.

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants