|
| None | __init__ (self, *Any args, **Any kwargs) |
| |
| None | feed (self, _RawMarkup markup) |
| |
|
None | close (self) |
| |
|
None | startElement (self, str name, Dict[str, str] attrs) |
| |
|
None | endElement (self, str name) |
| |
|
None | startElementNS (self, Tuple[str, str] nsTuple, str nodeName, Dict[str, str] attrs) |
| |
|
None | endElementNS (self, Tuple[str, str] nsTuple, str nodeName) |
| |
|
None | startPrefixMapping (self, str prefix, str nodeValue) |
| |
|
None | endPrefixMapping (self, str prefix) |
| |
|
None | characters (self, str content) |
| |
|
None | startDocument (self) |
| |
|
None | endDocument (self) |
| |
| None | initialize_soup (self, BeautifulSoup soup) |
| |
| None | reset (self) |
| |
| bool | can_be_empty_element (self, str tag_name) |
| |
| Iterable[Tuple[_RawMarkup, Optional[_Encoding], Optional[_Encoding], bool]] | prepare_markup (self, _RawMarkup markup, Optional[_Encoding] user_specified_encoding=None, Optional[_Encoding] document_declared_encoding=None, Optional[_Encodings] exclude_encodings=None) |
| |
| str | test_fragment_to_document (self, str fragment) |
| |
| bool | set_up_substitutions (self, Tag tag) |
| |
|
|
| soup |
| |
|
| cdata_list_attributes |
| |
|
| preserve_whitespace_tags |
| |
|
| empty_element_tags |
| |
|
| store_line_numbers |
| |
|
| string_containers |
| |
|
| attribute_dict_class |
| |
|
| attribute_value_list_class |
| |
|
Any | USE_DEFAULT = object() |
| |
|
str | NAME = "[Unknown tree builder]" |
| |
|
list | ALTERNATE_NAMES = [] |
| |
|
list | features = [] |
| |
|
bool | is_xml = False |
| |
|
bool | picklable = False |
| |
|
Optional | soup [BeautifulSoup] |
| |
|
Optional | empty_element_tags = None |
| |
|
Dict | cdata_list_attributes [str, Set[str]] |
| |
|
Set | preserve_whitespace_tags [str] |
| |
|
Dict | string_containers [str, Type[NavigableString]] |
| |
|
bool | tracks_line_numbers |
| |
|
Dict | DEFAULT_CDATA_LIST_ATTRIBUTES = defaultdict(set) |
| |
|
Set | DEFAULT_PRESERVE_WHITESPACE_TAGS = set() |
| |
|
dict | DEFAULT_STRING_CONTAINERS = {} |
| |
|
Optional | DEFAULT_EMPTY_ELEMENT_TAGS = None |
| |
|
bool | TRACKS_LINE_NUMBERS = False |
| |
| _AttributeValues | _replace_cdata_list_attribute_values (self, str tag_name, _RawOrProcessedAttributeValues attrs) |
| |
A Beautiful Soup treebuilder that listens for SAX events.
This is not currently used for anything, and it will be removed
soon. It was a good idea, but it wasn't properly integrated into the
rest of Beautiful Soup, so there have been long stretches where it
hasn't worked properly.