Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

soup = bs4.BeautifulSoup(html_doc, "html.parser")

for longer parses:

try:
    bs4.BeautifulSoup("<div>Test</div>", features="lxml")
    bs4_prefered_parser = "lxml"
except bs4.FeatureNotFound:
    bs4_prefered_parser = "html.parser"