Optional builder object. If omitted, the parser
uses the standard elementtree builder.
encoding=
Optional character encoding, if known. If omitted,
the parser looks for META tags inside the document. If no tags
are found, the parser defaults to ISO-8859-1. Note that if your
document uses a non-ASCII compatible encoding, you must decode
the document before parsing.
Optional character encoding, if known. If omitted,
the parser looks for META tags inside the document. If no tags
are found, the parser defaults to ISO-8859-1.
ElementTree builder for HTML source code. This builder converts an
HTML document or fragment to an ElementTree.
The parser is relatively picky, and requires balanced tags for most
elements. However, elements belonging to the following group are
automatically closed: P, LI, TR, TH, and TD. In addition, the
parser automatically inserts end tags immediately after the start
tag, and ignores any end tags for the following group: IMG, HR,
META, and LINK.
builder=
Optional builder object. If omitted, the parser
uses the standard elementtree builder.
encoding=
Optional character encoding, if known. If omitted,
the parser looks for META tags inside the document. If no tags
are found, the parser defaults to ISO-8859-1. Note that if your
document uses a non-ASCII compatible encoding, you must decode
the document before parsing.