Module ImportFrom alias Import alias Import alias ImportFrom alias alias alias Assign NameStore ListLoad Str Str Str Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str ClassDef bases NameLoad body FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr Call NameLoad NameLoad Assign AttributeStore NameLoad attr ListLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str For NameStore AttributeLoad NameLoad attr body Expr Call AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr Num NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr Num NameLoad decorator_list FunctionDef arguments args NameParam defaults vararg body If CompareEq Call NameLoad AttributeLoad NameLoad attr Num body Return NameLoad If CompareEq Call NameLoad NameLoad Num body Return SubscriptLoad AttributeLoad NameLoad attr Index Num Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Assign NameStore NameLoad Assign NameStore NameLoad While CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad ListLoad If CompareGt Call NameLoad NameLoad Num body If CompareIs NameLoad NameLoad body Assign NameStore NameLoad Assign NameStore Call NameLoad NameLoad orelse Assign NameStore Call AttributeLoad NameLoad attr Call NameLoad NameLoad If CompareIs NameLoad NameLoad body Return NameLoad For NameStore NameLoad body If CompareIn NameLoad NameLoad body Return NameLoad Return NameLoad decorator_list decorator_list Assign NameStore Call NameLoad ClassDef bases NameLoad body Expr Str Assign NameStore ListLoad Assign NameStore NameLoad Assign NameStore Call NameLoad Assign NameStore NameLoad Assign NameStore Dict FunctionDef arguments args NameParam defaults body Assign AttributeStore NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str If CompareIs AttributeLoad NameLoad attr NameLoad body Return NameLoad Return CompareIn NameLoad AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Return TupleLoad NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Str If UnaryOpNot NameLoad body Return NameLoad If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Str ListLoad Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr Call AttributeLoad NameLoad attr NameLoad For NameStore Call AttributeLoad NameLoad attr body If BoolOpOr CompareIn NameLoad NameLoad BoolOpAnd NameLoad CompareIn NameLoad NameLoad body Assign NameStore SubscriptLoad NameLoad Index NameLoad If Call NameLoad NameLoad NameLoad body Assign NameStore Call AttributeLoad NameLoad attr NameLoad orelse Assign NameStore NameLoad Assign SubscriptStore NameLoad Index NameLoad NameLoad Return NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Assign NameStore Call NameLoad GeneratorExp TupleLoad SubscriptLoad NameLoad Index Num NameLoad comprehension TupleStore NameStore NameStore Call NameLoad Call AttributeLoad NameLoad attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list FunctionDef arguments args NameParam defaults body Pass decorator_list decorator_list ClassDef bases NameLoad body Expr Str Assign NameStore Call NameLoad ListLoad Str Str Assign NameStore Call NameLoad ListLoad Str Str Str Str Str Str Str Str Str Assign NameStore Dict Str Str Str Str Str Str Str Str Str Str Str Str ListLoad Str Str Str ListLoad Str Str ListLoad Str Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str ListLoad Str FunctionDef arguments args NameParam NameParam defaults body If CompareNotEq AttributeLoad NameLoad attr Str body Return NameLoad Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore Call AttributeLoad NameLoad attr Str Assign NameStore NameLoad If CompareIsNot NameLoad NameLoad body Assign NameStore NameLoad Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad orelse If BoolOpAnd CompareIsNot NameLoad NameLoad CompareIsNot NameLoad NameLoad CompareEq Call AttributeLoad NameLoad attr Str body Assign SubscriptStore NameLoad Index Str Call NameLoad NameLoad Return CompareIsNot NameLoad NameLoad decorator_list decorator_list FunctionDef arguments args NameParam defaults body Expr Str Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Str For NameStore AttributeLoad NameLoad attr body Assign NameStore Call NameLoad NameLoad NameLoad If Call NameLoad NameLoad NameLoad body Expr Call NameLoad NameLoad NameLoad NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad decorator_list ClassDef bases NameLoad body Pass decorator_list ImportFrom alias Expr Call NameLoad NameLoad TryExcept body ImportFrom alias Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass TryExcept body ImportFrom alias Expr Call NameLoad NameLoad handlers ExceptHandler type NameLoad body Pass
N/A collections defaultdict N/A itertools N/A sys element CharsetMetaAttributeValue ContentMetaAttributeValue whitespace_re N/A __all__ N/A HTMLTreeBuilder SAXTreeBuilder TreeBuilder TreeBuilderRegistry N/A FAST fast N/A PERMISSIVE permissive N/A STRICT strict N/A XML xml N/A HTML html N/A HTML_5 html5 TreeBuilderRegistry N/A object N/A __init__ N/A N/A self N/A N/A N/A N/A self builders_for_feature N/A defaultdict list N/A N/A self builders N/A N/A register N/A N/A self treebuilder_class N/A N/A N/A Register a treebuilder based on its advertised features. N/A feature N/A treebuilder_class features N/A N/A N/A N/A N/A N/A self builders_for_feature N/A feature insert 0 treebuilder_class N/A N/A N/A N/A self builders insert 0 treebuilder_class N/A lookup N/A N/A self N/A features N/A N/A N/A N/A len N/A self builders 0 N/A N/A None N/A N/A N/A len features 0 N/A N/A N/A N/A self builders N/A 0 N/A features N/A list features N/A N/A N/A features reverse N/A candidates None N/A candidate_set None N/A N/A N/A len features 0 N/A N/A feature N/A N/A features pop N/A we_have_the_feature N/A N/A N/A self builders_for_feature get feature N/A N/A N/A N/A len we_have_the_feature 0 N/A N/A N/A candidates None N/A N/A candidates we_have_the_feature N/A candidate_set N/A set candidates N/A N/A candidate_set N/A N/A candidate_set intersection N/A set we_have_the_feature N/A N/A candidate_set None N/A N/A None N/A candidate candidates N/A N/A N/A candidate candidate_set N/A N/A candidate N/A None N/A N/A N/A builder_registry N/A TreeBuilderRegistry TreeBuilder N/A object N/A N/A Turn a document into a Beautiful Soup object tree. N/A features N/A N/A is_xml False N/A preserve_whitespace_tags N/A set N/A empty_element_tags None N/A cdata_list_attributes N/A __init__ N/A N/A self N/A N/A N/A N/A self soup None N/A reset N/A N/A self N/A N/A N/A N/A can_be_empty_element N/A N/A self tag_name N/A N/A N/A Might a tag with this name be an empty-element tag?

        The final markup may or may not actually present this tag as
        self-closing.

        For instance: an HTMLBuilder does not consider a <p> tag to be
        an empty-element tag (it's not in
        HTMLBuilder.empty_element_tags). This means an empty <p> tag
        will be presented as "<p></p>", not "<p />".

        The default implementation has no opinion about which tags are
        empty-element tags, so a tag will be presented as an
        empty-element tag if and only if it has no contents.
        "<foo></foo>" will become "<foo />", and "<foo>bar</foo>" will
        be left alone.
         N/A N/A N/A self empty_element_tags None N/A N/A True N/A N/A tag_name N/A self empty_element_tags N/A feed N/A N/A self markup N/A N/A N/A N/A NotImplementedError N/A prepare_markup N/A N/A self markup user_specified_encoding document_declared_encoding N/A None None N/A N/A N/A markup None None False N/A test_fragment_to_document N/A N/A self fragment N/A N/A N/A Wrap an HTML fragment to make it look like a document.

        Different parsers do this differently. For instance, lxml
        introduces an empty <head> tag, and html5lib
        doesn't. Abstracting this away lets us write simple tests
        which run HTML fragments through the parser and compare the
        results against other HTML fragments.

        This method should not be used outside of tests.
         N/A fragment N/A set_up_substitutions N/A N/A self tag N/A N/A N/A False N/A _replace_cdata_list_attribute_values N/A N/A self tag_name attrs N/A N/A N/A Replaces class="foo bar" with class=["foo", "bar"]

        Modifies its input in place.
         N/A N/A attrs N/A N/A attrs N/A N/A self cdata_list_attributes N/A N/A universal N/A N/A N/A self cdata_list_attributes get * N/A N/A tag_specific N/A N/A N/A self cdata_list_attributes get N/A N/A tag_name lower None N/A attr N/A N/A attrs keys N/A N/A N/A N/A attr universal N/A tag_specific N/A attr tag_specific N/A N/A value N/A attrs N/A attr N/A N/A isinstance value basestring N/A N/A values N/A N/A whitespace_re split value N/A N/A values value N/A N/A attrs N/A attr values N/A attrs N/A N/A SAXTreeBuilder N/A TreeBuilder N/A N/A A Beautiful Soup treebuilder that listens for SAX events. feed N/A N/A self markup N/A N/A N/A N/A NotImplementedError N/A close N/A N/A self N/A N/A N/A N/A startElement N/A N/A self name attrs N/A N/A N/A attrs N/A dict N/A N/A N/A key N/A 1 value N/A N/A key value N/A list N/A N/A attrs items N/A N/A N/A N/A self soup handle_starttag name attrs N/A endElement N/A N/A self name N/A N/A N/A N/A N/A N/A self soup handle_endtag name N/A startElementNS N/A N/A self nsTuple nodeName attrs N/A N/A N/A N/A N/A self startElement nodeName attrs N/A endElementNS N/A N/A self nsTuple nodeName N/A N/A N/A N/A N/A self endElement nodeName N/A startPrefixMapping N/A N/A self prefix nodeValue N/A N/A N/A N/A endPrefixMapping N/A N/A self prefix N/A N/A N/A N/A characters N/A N/A self content N/A N/A N/A N/A N/A N/A self soup handle_data content N/A startDocument N/A N/A self N/A N/A N/A N/A endDocument N/A N/A self N/A N/A N/A N/A N/A HTMLTreeBuilder N/A TreeBuilder N/A N/A This TreeBuilder knows facts about HTML.

    Such as which tags are empty-element tags.
     N/A preserve_whitespace_tags N/A set N/A pre textarea N/A empty_element_tags N/A set N/A br hr input img meta spacer link frame base N/A cdata_list_attributes N/A * a link td th td form object area icon iframe output N/A class accesskey dropzone N/A rel rev N/A rel rev N/A headers N/A headers N/A headers N/A accept-charset N/A archive N/A rel N/A sizes N/A sandbox N/A for set_up_substitutions N/A N/A self tag N/A N/A N/A N/A N/A tag name meta N/A N/A False N/A http_equiv N/A N/A tag get http-equiv N/A content N/A N/A tag get content N/A charset N/A N/A tag get charset N/A meta_encoding None N/A N/A charset None N/A N/A meta_encoding charset N/A N/A tag N/A charset N/A CharsetMetaAttributeValue charset N/A N/A N/A N/A content None N/A http_equiv None N/A N/A N/A http_equiv lower content-type N/A N/A N/A tag N/A content N/A ContentMetaAttributeValue content N/A N/A meta_encoding None N/A N/A register_treebuilders_from N/A N/A module N/A N/A N/A Copy TreeBuilders from the given module into this module. N/A this_module N/A N/A sys modules N/A pyhn.lib.bs4_py2.builder N/A name N/A module __all__ N/A N/A obj N/A getattr module name N/A N/A issubclass obj TreeBuilder N/A N/A N/A setattr this_module name obj N/A N/A N/A N/A this_module __all__ append name N/A N/A N/A N/A this_module builder_registry register obj N/A ParserRejectedMarkup N/A Exception N/A N/A N/A N/A _htmlparser N/A N/A register_treebuilders_from _htmlparser N/A N/A N/A _html5lib N/A N/A register_treebuilders_from _html5lib N/A N/A N/A ImportError N/A N/A N/A N/A N/A _lxml N/A N/A register_treebuilders_from _lxml N/A N/A N/A ImportError N/A N/A