html-to-etree

parse html to etree


Keywords
html-to-etree, encoding, html, lxml, unicode
License
BSD-3-Clause
Install
pip install html-to-etree==0.2.0

Documentation

html to etree

Coverage Status Requirements Status

parse html to lxml etree

  • Free software: BSD license
  • Python versions: 2.7, 3.4+

Features

  • parse html to lxml etree
  • handle character decoding

Quickstart

  • tree = parse_html_bytes(body=body_bytes, content_type='text/html')
  • tree = parse_html_unicode(uni_string=body_unicode)

Credits

This package was created with Cookiecutter and the `codinguncut/cookiecutter-pypackage`_ project template.