Applications Google
Menu principal

Post a Comment On: Only Python

"Crunchy and Python 3.0a1"

2 Comments -

1 – 2 of 2
Anonymous Anonymous said...

You can use BeautifulSoup to parse nasty html and get back a nice datastructure that resembles that of elementtree.

You second choice is to use Tidy (a tool that turns nasty html into well formed xml), I think there are python bindings for that as well.

2:30 AM

Blogger André Roberge said...

I already use BeautifulSoup (via ElementSoup) when Crunchy is running under Python 2.x - the problem is that it does not work under 3.x.

Tidy might be a possible choice. I have been trying to keep the dependencies to a minimum, but may make a temporary exception (until BeautifulSoup is available for Python 3.x).

Thanks for the suggestions.

8:42 AM

Spammers: none shall pass.
You can use some HTML tags, such as <b>, <i>, <a>

Comments on this blog are restricted to team members.

You will be asked to sign in after submitting your comment.
Please prove you're not a robot