[Tutor] Make beautifulsoup show the data it has an issue with

Sander Sweers sander.sweers at gmail.com
Sun Apr 12 20:15:57 CEST 2009


2009/4/12 Kent Johnson <kent37 at tds.net>:
> try:
>  tsoup = BeautifulSoup(data)
> except HTMLParseError, ex:

Aah, ex is the object/class which has the error data. This was the
missing piece for me.

Many thanks Kent!

Greets
Sander


More information about the Tutor mailing list