simon@semantic:~/uwn$ python askubuntu/askubuntu.py
/usr/local/lib/python2.7/dist-packages/bs4/__init__.py:166: UserWarning: No parser was explicitly specified, so I'm using the best available HTML parser for this system ("html.parser"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
To get rid of this warning, change this:
BeautifulSoup([your markup])
to this:
BeautifulSoup([your markup], "html.parser")
markup_type=markup_type))
Traceback (most recent call last):
File "askubuntu/askubuntu.py", line 30, in <module>
print output
UnicodeEncodeError: 'ascii' codec can't encode character u'\u201c' in position 236: ordinal not in range(128)