Do you use BeautifulSoup or LXML to parse your HTML markup in Python?

Prahlad Yeri - Jun 18 '19 - - Dev Community

BeautifulSoup has been my go to library for html parsing since many years, its useful for DOM parsing in the python world (just as jquery is in JavaScript world) and it supports multiple html parsers such as lxml and html5lib.

But I came across this interesting StackOverflow answer today which hints that BeautifulSoup may not be the best for performance, and that lxml's own module called soupparser is much faster.

What do you use for html parsing, have you ever come across any performance bottleneck with BeautifulSoup? Me, I haven't.

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Terabox Video Player