BigBrotherBot v1.8.0
System Development Information for the BigBrotherBot project.

b3::lib::elementtree::HTMLTreeBuilder Namespace Reference

Classes

class  HTMLParser
class  HTMLTreeBuilder
 ElementTree builder for HTML source code. More...

Functions

def parse
 Parse an HTML document or document fragment.

Variables

string AUTOCLOSE = "p"
string IGNOREEND = "img"
tuple is_not_ascii = re.compile(r"[\x80-\xff]")
 TreeBuilder = HTMLTreeBuilder
 An alias for the HTMLTreeBuilder class.

Function Documentation

def b3::lib::elementtree::HTMLTreeBuilder::parse (   source,
  encoding = None 
)

Parse an HTML document or document fragment.

Parameters:
sourceA filename or file object containing HTML data.
encodingOptional 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.
Returns:
An ElementTree instance

Variable Documentation

tuple b3::lib::elementtree::HTMLTreeBuilder::is_not_ascii = re.compile(r"[\x80-\xff]")
 All Classes Namespaces Files Functions Variables Properties