I get this error:
python boilerpipeTrial.py
Traceback (most recent call last):
File "boilerpipeTrial.py", line 9, in
print extracted_text
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbb' in position 20: ordinal not in range(128)
where line 9 is: print extracted_text
Would please give me some hints on how to solve it?
Hi, when running this code on my Ubuntu 12.04 micro-instance:
!/usr/bin/python
import boilerpipe
from boilerpipe.extract import Extractor extractor = Extractor(extractor='ArticleExtractor', url="http://europe.wsj.com/home-page") extracted_text = extractor.getText() print extracted_text extracted_html = extractor.getHTML()
I get this error: python boilerpipeTrial.py Traceback (most recent call last): File "boilerpipeTrial.py", line 9, in
print extracted_text
UnicodeEncodeError: 'ascii' codec can't encode character u'\xbb' in position 20: ordinal not in range(128)
where line 9 is: print extracted_text
Would please give me some hints on how to solve it?
Kind regards. Marco