Logo Search packages:      
Sourcecode: wapiti version File versions  Download package

BeautifulSoup::MinimalSoup Class Reference

Inheritance diagram for BeautifulSoup::MinimalSoup:

BeautifulSoup::BeautifulSoup BeautifulSoup::BeautifulStoneSoup BeautifulSoup::Tag BeautifulSoup::PageElement

List of all members.

Detailed Description

The MinimalSoup class is for parsing HTML that contains
pathologically bad markup. It makes no assumptions about tag
nesting, but it does know which tags are self-closing, that
<script> tags contain Javascript and should not be parsed, that
META tags may contain encoding information, and so on.

This also makes it better for subclassing than BeautifulStoneSoup
or BeautifulSoup.

Definition at line 1461 of file BeautifulSoup.py.

Public Member Functions

def __getattr__
def __init__
def __init__
def endData
def extract
def findAllNext
def findAllPrevious
def findNext
def findNextSibling
def findNextSiblings
def findParent
def findParents
def findPrevious
def findPreviousSibling
def findPreviousSiblings
def handle_charref
def handle_comment
def handle_data
def handle_decl
def handle_entityref
def handle_pi
def insert
def isSelfClosingTag
def nextGenerator
def nextSiblingGenerator
def parentGenerator
def parse_declaration
def popTag
def previousGenerator
def previousSiblingGenerator
def pushTag
def replaceWith
def reset
def setup
def start_meta
def substituteEncoding
def toEncoding
def unknown_endtag
def unknown_starttag

Public Attributes


Static Public Attributes

tuple CHARSET_RE = re.compile("((^|;)\s*charset=)([^;]*)")
 fetchNextSiblings = findNextSiblings
 fetchParents = findParents
 fetchPrevious = findAllPrevious
 fetchPreviousSiblings = findPreviousSiblings
string HTML_ENTITIES = "html"
list NESTABLE_BLOCK_TAGS = ['blockquote', 'div', 'fieldset', 'ins', 'del']
dictionary NESTABLE_TAGS = {}
list NON_NESTABLE_BLOCK_TAGS = ['address', 'form', 'p', 'pre']
dictionary QUOTE_TAGS = {'script': None}
tuple RESET_NESTING_TAGS = buildTagMap('noscript')
string ROOT_TAG_NAME = u'[document]'
string XML_ENTITIES = "xml"

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index