Scraping-Scripts
Scraping-Scripts copied to clipboard
thechive.com.py UnicodeEncodeError
I tried using this on a different system and I get an error as follows:
Invoking findLastPage()
Last page is 1000
Page 0 of 1000
Traceback (most recent call last):
File "thechive.com.py", line 47, in <module>
print("\tName: " + name + "\n\t\tDate: " + date)
UnicodeEncodeError: 'ascii' codec can't encode character u'\u2019' in position 31: ordinal not in range(128)
The only difference is that it works on Ubuntu 16.06 but gives me this error on 14.04. I can't seem to figure out why as the scripts are identical. Any help would be appreciated
I fixed this buy running
sudo apt-get install language-pack-en