parameters: (self, stream, encoding=None, parseMeta=True, useChardet=True)
return_statement: return self.tree.getDocument()
docstring: Parse a HTML document into a well-formed tree
  
          stream - a filelike object or string containing the HTML to be parsed
  
          The optional encoding parameter must be a string that indicates
          the encoding.  If specified, that encoding will be used,
          regardless of any BOM or later declaration (such as in a meta
          element)
docstring_summary: Parse a HTML document into a well-formed tree
docstring_tokens: Parse a HTML document into a well - formed tree
function: def parse(self, stream, encoding=None, parseMeta=True, useChardet=True):
          """Parse a HTML document into a well-formed tree
  
          stream - a filelike object or string containing the HTML to be parsed
  
          The optional encoding parameter must be a string that indicates
          the encoding.  If specified, that encoding will be used,
          regardless of any BOM or later declaration (such as in a meta
          element)
          """
          self._parse(stream, innerHTML=False, encoding=encoding,
                      parseMeta=parseMeta, useChardet=useChardet)
          return self.tree.getDocument()
function_tokens: def parse ( self , stream , encoding = None , parseMeta = True , useChardet = True ) : self . _parse ( stream , innerHTML = False , encoding = encoding , parseMeta = parseMeta , useChardet = useChardet ) return self . tree . getDocument ( )