Package rosdeb :: Module BeautifulSoup :: Class HTMLParserBuilder
[frames] | no frames]

Class HTMLParserBuilder

source code

markupbase.ParserBase --+    
                        |    
    HTMLParser.HTMLParser --+
                            |
                           HTMLParserBuilder

Instance Methods
 
__init__(self, soup)
Initialize and reset this instance.
source code
 
handle_starttag(self, name, attrs) source code
 
handle_endtag(self, name) source code
 
handle_data(self, content) source code
 
handle_pi(self, text)
Handle a processing instruction as a ProcessingInstruction object, possibly one with a %SOUP-ENCODING% slot into which an encoding will be plugged later.
source code
 
handle_comment(self, text)
Handle comments as Comment objects.
source code
 
handle_charref(self, ref)
Handle character references as data.
source code
 
handle_entityref(self, ref)
Handle entity references as data, possibly converting known HTML and/or XML entity references to the corresponding Unicode characters.
source code
 
handle_decl(self, data)
Handle DOCTYPEs and the like as Declaration objects.
source code
 
parse_declaration(self, i)
Treat a bogus SGML declaration as raw data.
source code

Inherited from HTMLParser.HTMLParser: check_for_whole_start_tag, clear_cdata_mode, close, error, feed, get_starttag_text, goahead, handle_startendtag, parse_endtag, parse_pi, parse_starttag, reset, set_cdata_mode, unescape, unknown_decl

Inherited from markupbase.ParserBase: getpos, parse_comment, parse_marked_section, updatepos

Class Variables

Inherited from HTMLParser.HTMLParser: CDATA_CONTENT_ELEMENTS, entitydefs

Method Details

__init__(self, soup)
(Constructor)

source code 

Initialize and reset this instance.

Overrides: markupbase.ParserBase.__init__

handle_starttag(self, name, attrs)

source code 
Overrides: HTMLParser.HTMLParser.handle_starttag

handle_endtag(self, name)

source code 
Overrides: HTMLParser.HTMLParser.handle_endtag

handle_data(self, content)

source code 
Overrides: HTMLParser.HTMLParser.handle_data

handle_pi(self, text)

source code 

Handle a processing instruction as a ProcessingInstruction object, possibly one with a %SOUP-ENCODING% slot into which an encoding will be plugged later.

Overrides: HTMLParser.HTMLParser.handle_pi

handle_comment(self, text)

source code 

Handle comments as Comment objects.

Overrides: HTMLParser.HTMLParser.handle_comment

handle_charref(self, ref)

source code 

Handle character references as data.

Overrides: HTMLParser.HTMLParser.handle_charref

handle_entityref(self, ref)

source code 

Handle entity references as data, possibly converting known HTML and/or XML entity references to the corresponding Unicode characters.

Overrides: HTMLParser.HTMLParser.handle_entityref

handle_decl(self, data)

source code 

Handle DOCTYPEs and the like as Declaration objects.

Overrides: HTMLParser.HTMLParser.handle_decl

parse_declaration(self, i)

source code 

Treat a bogus SGML declaration as raw data. Treat a CDATA declaration as a CData object.

Overrides: markupbase.ParserBase.parse_declaration