class documentation
class SAXTreeBuilder(TreeBuilder): (source)
A Beautiful Soup treebuilder that listens for SAX events. This is not currently used for anything, but it demonstrates how a simple TreeBuilder would work.
Method | characters |
Undocumented |
Method | close |
Undocumented |
Method | end |
Undocumented |
Method | end |
Undocumented |
Method | end |
Undocumented |
Method | end |
Undocumented |
Method | feed |
Run some incoming markup through some parsing process, populating the `BeautifulSoup` object in self.soup. |
Method | start |
Undocumented |
Method | start |
Undocumented |
Method | start |
Undocumented |
Method | start |
Undocumented |
Inherited from TreeBuilder
:
Method | __init__ |
Constructor. |
Method | can |
Might a tag with this name be an empty-element tag? |
Method | initialize |
The BeautifulSoup object has been initialized and is now being associated with the TreeBuilder. |
Method | prepare |
Run any preliminary steps necessary to make incoming markup acceptable to the parser. |
Method | reset |
Do any work necessary to reset the underlying parser for a new document. |
Method | set |
Set up any substitutions that will need to be performed on a `Tag` when it's output as a string. |
Method | test |
Wrap an HTML fragment to make it look like a document. |
Constant | ALTERNATE |
Undocumented |
Constant | DEFAULT |
Undocumented |
Constant | DEFAULT |
Undocumented |
Constant | DEFAULT |
Undocumented |
Constant | NAME |
Undocumented |
Constant | TRACKS |
Undocumented |
Constant | USE |
Undocumented |
Class Variable | empty |
Undocumented |
Class Variable | features |
Undocumented |
Class Variable | is |
Undocumented |
Class Variable | picklable |
Undocumented |
Instance Variable | cdata |
Undocumented |
Instance Variable | preserve |
Undocumented |
Instance Variable | soup |
Undocumented |
Instance Variable | store |
Undocumented |
Instance Variable | string |
Undocumented |
Method | _replace |
When an attribute value is associated with a tag that can have multiple values for that attribute, convert the string value to a list of strings. |
overrides
bs4.builder.TreeBuilder.feed
Run some incoming markup through some parsing process, populating the `BeautifulSoup` object in self.soup. This method is not implemented in TreeBuilder; it must be implemented in subclasses. :return: None.