doc = """<html>
<head>
  <title> Meh
</head>
<body>
Look at this interesting use of <p>
rather than using <br /> tags as line breaks <p>
</body>"""
html.document_fromstring(doc)
Python html parsing that actually works