Metadata-Version: 2.2
Name: html-to-etree
Version: 0.2.0
Summary: parse html to etree
Home-page: https://github.com/fluquid/html-to-etree
Author: Johannes Ahlmann
Author-email: johannes@fluquid.com
License: BSD-3-Clause
Keywords: html-to-etree
Classifier: Development Status :: 2 - Pre-Alpha
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Natural Language :: English
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5
License-File: LICENSE
License-File: AUTHORS.rst
Requires-Dist: lxml
Requires-Dist: w3lib
Requires-Dist: cchardet
Requires-Dist: six
Dynamic: author
Dynamic: author-email
Dynamic: classifier
Dynamic: description
Dynamic: home-page
Dynamic: keywords
Dynamic: license
Dynamic: requires-dist
Dynamic: summary

=============
html to etree
=============

.. image:: https://img.shields.io/pypi/v/html-to-etree.svg
        :target: https://pypi.python.org/pypi/html-to-etree

.. image:: https://img.shields.io/pypi/pyversions/html-to-etree.svg
        :target: https://pypi.python.org/pypi/html-to-etree

.. image:: https://img.shields.io/travis/fluquid/html-to-etree.svg
        :target: https://travis-ci.org/fluquid/html-to-etree

.. image:: https://codecov.io/github/fluquid/html-to-etree/coverage.svg?branch=master
    :alt: Coverage Status
    :target: https://codecov.io/github/fluquid/html-to-etree

.. image:: https://requires.io/github/fluquid/html-to-etree/requirements.svg?branch=master
    :alt: Requirements Status
    :target: https://requires.io/github/fluquid/html-to-etree/requirements/?branch=master

parse html to lxml etree

convenience methods for parsing html documents to lxml etree.
lxml has limited capabilities for handling different encodings, and this
library is intended as a reusable utility parsing byte-code html responses
into ElementTrees using sane character decoding.

* 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.

.. _Cookiecutter: https://github.com/audreyr/cookiecutter

=======
History
=======


0.2.0 (2017-06-07)
------------------

0.1.0-dev (unreleased)
----------------------

* First release on PyPI.
