html5_parser

Fast C based HTML 5 parsing for python

bacaro: haikuports also on HaikuPorts
Also on HaikuPorts. html5_parser

Description

A fast implementation of the HTML 5 parsing spec for Python. Parsing is done in C using a variant of the gumbo parser. The gumbo parse tree is then transformed into an lxml tree, also in C, yielding parse times that can be a thirtieth of the html5lib parse times. That is a speedup of 30x. This differs, for instance, from the gumbo python bindings, where the initial parsing is done in C but the transformation into the final tree is done in python.

Install

Channel stable v0.4.10-5

This app is curated in HaikuPorts. Install it from there, it is already available in HaikuDepot.

pkgman install html5_parser

Download version 0.4.10-5 (x86_64) hpkg

Careful: the file comes from HaikuPorts' own server, but installing it by hand is not the way in. It is pkgman that resolves the dependencies an .hpkg does not carry with it, and a package installed on its own may simply not run. Use the pkgman command above, unless you know exactly why you want the file.

Reviews