rhelmer/socorro — comment on commit f831575c70cd6336177ee35f31422f69cf258322
File:  line 0
By peterbe:

I have long given up on BeautifulSoup. lxml.html is where it's at. It used to be really picky about perfect XHTML but that's gone now. I've seen cases where lxml.html does better than BeatifulSoup on broken HTML. Also, it's something like 10 times faster if that matters at all.

As long as you have the python-dev libs and build-essentials (Debian-speak) lxml is best installed with pip these days.