raise UnicodeError, "label too long"

"Martin v. Löwis" martin at v.loewis.de
Wed Jan 24 22:51:51 CET 2007

Flavio schrieb:
> What I am doing is very simple:
> I fetch an url (html page) parse it using BeautifulSoup, extract the
> links and try to open each of the links, repeating the cycle.
> Beautiful soup converts the html to unicode. That's why when I try to
> open the links extracted from the page I get this error.
> This is bad, since some links do contain strings with non-ascii
> characters.

Please try answering the exact question that Marc asked:
what is an example for unicode string that triggers the


More information about the Python-list mailing list