document.htmlparse.element Module

HTML tree things.

wpull.document.htmlparse.element.Comment

A comment.

wpull.document.htmlparse.element.text

str

The comment text.

alias of CommentType

wpull.document.htmlparse.element.Doctype

A Doctype.

wpull.document.htmlparse.element.text

str

The Doctype text.

alias of DoctypeType

wpull.document.htmlparse.element.Element

An HTML element.

Attributes
tag (str): The tag name of the element. attrib (dict): The attributes of the element. text (str, None): The text of the element. tail (str, None): The text after the element. end (bool): Whether the tag is and end tag.

alias of ElementType