3 ms·
We used this in a project many suns ago and we ended up switching to libxml2, less pretty presentation, but more functional. YMMV.
by jng 4y ago
We used this in a project many suns ago and we ended up switching to libxml2, less pretty presentation, but more functional. YMMV.
- brodouevencode 4y agobs4 introduced some very nice features over bs3, if that's what you were using, and includes the ability to use libxml2 as a parser. For very simple things though libxml2 would be a better fit.
- jamessb 4y agobs4 is able to parse some malformed documents that libxml2 chokes on. For these cases it can be useful to do the reverse, and use the BeautifulSoup HTML parser as an alternative parser backend for the lxml package: https://lxml.de/elementsoup.html https://lxml.de/elementsoup.html