= About Beautiful Soup 4 = Earlier versions of Beautiful Soup included a custom HTML parser. Beautiful Soup 4 does not include a parser. You'll need to install either lxml or html5lib. = Introduction = >>> from bs4 import BeautifulSoup >>> soup = BeautifulSoup("
SomebadHTML") >>> print soup.prettify()
Some bad HTML
>>> soup.find(text="bad") u'bad' >>> soup.i HTML