Module Expr Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore Str Assign NameStore ListLoad Str Import alias Import alias ImportFrom alias ImportFrom alias ImportFrom alias alias alias alias alias alias alias alias alias alias alias ClassDef bases NameLoad body Expr Str Assign NameStore Str Assign NameStore ListLoad Str Str Assign NameStore Dict Num Num Num Num Num NameLoad NameLoad NameLoad NameLoad NameLoad FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam NameParam defaults Str NameLoad NameLoad NameLoad NameLoad kwarg body Expr Str If CompareIn Str NameLoad body Expr Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str If CompareIn Str NameLoad body Delete SubscriptDel NameLoad Index Str Expr Call AttributeLoad NameLoad attr Str FunctionDef arguments args NameParam NameParam defaults body If CompareIn NameLoad NameLoad body Expr Call AttributeLoad NameLoad attr BinOpMod Str TupleLoad NameLoad NameLoad Assign NameStore SubscriptLoad NameLoad Index NameLoad Delete SubscriptDel NameLoad Index NameLoad Return NameLoad Return NameLoad decorator_list Assign NameStore BoolOpOr NameLoad Call NameLoad Str Str Assign NameStore BoolOpOr NameLoad Call NameLoad Str Str If CompareGt Call NameLoad NameLoad Num body Assign NameStore Call AttributeLoad Call NameLoad Call AttributeLoad NameLoad attr attr Raise Call NameLoad BinOpMod Str NameLoad If CompareIs NameLoad NameLoad body If Call NameLoad NameLoad NameLoad body Assign NameStore ListLoad NameLoad If BoolOpOr CompareIs NameLoad NameLoad CompareEq Call NameLoad NameLoad Num body Assign NameStore AttributeLoad NameLoad attr Assign NameStore Call AttributeLoad NameLoad attr NameLoad If CompareIs NameLoad NameLoad body Raise Call NameLoad BinOpMod Str Call AttributeLoad Str attr NameLoad Assign NameStore Call NameLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr If Call NameLoad NameLoad Str body Assign NameStore Call AttributeLoad NameLoad attr Assign TupleStore AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr AttributeStore NameLoad attr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad TryExcept body Expr Call AttributeLoad NameLoad attr handlers ExceptHandler type NameLoad body Pass Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad AttributeLoad NameLoad attr attr Expr Call AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad attr While CompareNotEq AttributeLoad AttributeLoad NameLoad attr attr AttributeLoad NameLoad attr body Expr Call AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam defaults body Expr Call AttributeLoad NameLoad attr NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr Assign AttributeStore NameLoad attr Num Expr Call AttributeLoad AttributeLoad NameLoad attr attr Assign AttributeStore NameLoad attr ListLoad Assign AttributeStore NameLoad attr NameLoad Assign AttributeStore NameLoad attr ListLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad kwarg body Expr Str Return Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam NameParam defaults body Raise Call NameLoad Str decorator_list FunctionDef arguments args NameParam defaults body Assign NameStore Call AttributeLoad AttributeLoad NameLoad attr attr If AttributeLoad NameLoad attr body Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num Return AttributeLoad NameLoad attr decorator_list FunctionDef arguments args NameParam NameParam defaults body If AttributeLoad NameLoad attr body Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad Expr Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr SubscriptLoad AttributeLoad NameLoad attr Index Num decorator_list FunctionDef arguments args NameParam NameParam defaults NameLoad body If AttributeLoad NameLoad attr body Assign NameStore Call AttributeLoad Str attr AttributeLoad NameLoad attr If BoolOpAnd CompareEq Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr Str UnaryOpNot Call AttributeLoad Call NameLoad ListComp AttributeLoad NameLoad attr comprehension NameStore AttributeLoad NameLoad attr attr AttributeLoad AttributeLoad NameLoad attr attr body If CompareIn Str NameLoad body Assign NameStore Str orelse Assign NameStore Str Assign AttributeStore NameLoad attr ListLoad If BoolOpAnd AttributeLoad NameLoad attr CompareLtE Call NameLoad AttributeLoad NameLoad attr Num BoolOpOr UnaryOpNot AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad body Return Assign NameStore Call NameLoad NameLoad Expr Call AttributeLoad NameLoad attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr AttributeLoad NameLoad attr AttributeLoad NameLoad attr If AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad AttributeLoad AttributeLoad NameLoad attr attr attr NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam defaults NameLoad NameLoad body Expr Str If CompareEq NameLoad AttributeLoad NameLoad attr body Return Assign NameStore Num Assign NameStore NameLoad For NameStore Call NameLoad BinOpSub Call NameLoad AttributeLoad NameLoad attr Num Num Num body If BoolOpAnd CompareEq NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr CompareEqEq NameLoad AttributeLoad SubscriptLoad AttributeLoad NameLoad attr Index NameLoad attr NameLoad body Assign NameStore BinOpSub Call NameLoad AttributeLoad NameLoad attr NameLoad Break If UnaryOpNot NameLoad body Assign NameStore BinOpSub NameLoad Num For NameStore Call NameLoad Num NameLoad body Assign NameStore Call AttributeLoad NameLoad attr Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam NameParam NameParam defaults body Expr Str Expr Call AttributeLoad NameLoad attr If BoolOpAnd AttributeLoad NameLoad attr CompareLtE Call NameLoad AttributeLoad NameLoad attr Num BoolOpOr AttributeLoad AttributeLoad NameLoad attr attr UnaryOpNot Call AttributeLoad AttributeLoad NameLoad attr attr NameLoad NameLoad body Return NameLoad Assign NameStore Call NameLoad NameLoad AttributeLoad NameLoad attr NameLoad NameLoad NameLoad NameLoad AttributeLoad NameLoad attr AttributeLoad NameLoad attr If CompareIs NameLoad NameLoad body Return NameLoad If AttributeLoad NameLoad attr body Assign AttributeStore AttributeLoad NameLoad attr attr NameLoad Assign AttributeStore NameLoad attr NameLoad Expr Call AttributeLoad NameLoad attr NameLoad Return NameLoad decorator_list FunctionDef arguments args NameParam NameParam NameParam defaults NameLoad body Expr Call AttributeLoad NameLoad attr Expr Call AttributeLoad NameLoad 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 NameLoad NameLoad Str body Expr Str If AttributeLoad NameLoad attr body Assign NameStore Str If CompareNotEq NameLoad NameLoad body Assign NameStore BinOpMod Str NameLoad Assign NameStore BinOpMod Str NameLoad orelse Assign NameStore Str If UnaryOpNot NameLoad body Assign NameStore NameLoad orelse Assign NameStore Num Return BinOpAdd NameLoad Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Expr Str FunctionDef arguments args NameParam defaults vararg kwarg body Assign SubscriptStore NameLoad Index Str Str Expr Call AttributeLoad NameLoad attr Str Expr Call AttributeLoad Call NameLoad NameLoad NameLoad attr NameLoad NameLoad decorator_list decorator_list ClassDef bases NameLoad body Pass decorator_list If CompareEq NameLoad Str body Import alias Assign NameStore Call NameLoad AttributeLoad NameLoad attr Print Call AttributeLoad NameLoad attr
N/A N/A Beautiful Soup
Elixir and Tonic
"The Screen-Scraper's Friend"
http://www.crummy.com/software/BeautifulSoup/

Beautiful Soup uses a pluggable XML or HTML parser to parse a
(possibly invalid) document into a tree representation. Beautiful Soup
provides provides methods and Pythonic idioms that make it easy to
navigate, search, and modify the parse tree.

Beautiful Soup works with Python 2.6 and up. It works better if lxml
and/or html5lib is installed.

For more than you ever wanted to know about Beautiful Soup, see the
documentation:
http://www.crummy.com/software/BeautifulSoup/bs4/doc/
 N/A __author__ Leonard Richardson (leonardr@segfault.org) N/A __version__ 4.0.1 N/A __copyright__ Copyright (c) 2004-2012 Leonard Richardson N/A __license__ MIT N/A __all__ N/A BeautifulSoup N/A re N/A warnings builder builder_registry dammit UnicodeDammit element CData Comment DEFAULT_OUTPUT_ENCODING Declaration Doctype NavigableString PageElement ProcessingInstruction ResultSet SoupStrainer Tag BeautifulSoup N/A Tag N/A N/A 
    This class defines the basic interface called by the tree builders.

    These methods will be called by the parser:
      reset()
      feed(markup)

    The tree builder may call these methods from its feed() implementation:
      handle_starttag(name, attrs) # See note about return value
      handle_endtag(name)
      handle_data(data) # Appends to the current data node
      endData(containerClass=NavigableString) # Ends the current data node

    No matter how complicated the underlying parser is, you should be
    able to build a tree using 'start tag' events, 'end tag' events,
    'data' events, and "done with data" events.

    If you encounter an empty-element tag (aka a self-closing tag,
    like HTML's <br> tag), call handle_starttag and then
    handle_endtag.
     N/A ROOT_TAG_NAME [document] N/A DEFAULT_BUILDER_FEATURES N/A html fast N/A STRIP_ASCII_SPACES N/A 9 10 12 13 32 None None None None None __init__ N/A N/A self markup features builder parse_only from_encoding N/A None None None None kwargs N/A N/A The Soup object is initialized as the 'root tag', and the
        provided markup (which can be a string or a file-like object)
        is fed into the underlying parser. N/A N/A convertEntities kwargs N/A N/A N/A N/A warnings warn BS4 does not respect the convertEntities argument to the BeautifulSoup constructor. Entities are always converted to Unicode characters. N/A N/A markupMassage kwargs N/A N/A N/A kwargs N/A markupMassage N/A N/A N/A warnings warn BS4 does not respect the markupMassage argument to the BeautifulSoup constructor. The tree builder is responsible for any necessary markup massage. N/A N/A smartQuotesTo kwargs N/A N/A N/A kwargs N/A smartQuotesTo N/A N/A N/A warnings warn BS4 does not respect the smartQuotesTo argument to the BeautifulSoup constructor. Smart quotes are always converted to Unicode characters. N/A N/A selfClosingTags kwargs N/A N/A N/A kwargs N/A selfClosingTags N/A N/A N/A warnings warn BS4 does not respect the selfClosingTags argument to the BeautifulSoup constructor. The tree builder is responsible for understanding self-closing tags. N/A N/A isHTML kwargs N/A N/A N/A kwargs N/A isHTML N/A N/A N/A warnings warn BS4 does not respect the isHTML argument to the BeautifulSoup constructor. You can pass in features='html' or features='xml' to get a builder capable of handling one or the other. deprecated_argument N/A N/A old_name new_name N/A N/A N/A N/A old_name kwargs N/A N/A N/A N/A warnings warn N/A The "%s" argument to the BeautifulSoup constructor has been renamed to "%s." N/A old_name new_name N/A value N/A kwargs N/A old_name N/A N/A kwargs N/A old_name N/A value N/A None N/A N/A parse_only N/A parse_only N/A deprecated_argument parseOnlyThese parse_only N/A from_encoding N/A from_encoding N/A deprecated_argument fromEncoding from_encoding N/A N/A N/A len kwargs 0 N/A N/A arg N/A N/A N/A list N/A N/A kwargs keys pop N/A N/A TypeError N/A __init__() got an unexpected keyword argument '%s' arg N/A N/A builder None N/A N/A N/A isinstance features str N/A N/A features N/A features N/A N/A N/A features None N/A N/A len features 0 N/A N/A features N/A self DEFAULT_BUILDER_FEATURES N/A builder_class N/A N/A builder_registry lookup features N/A N/A builder_class None N/A N/A N/A ValueError N/A Couldn't find a tree builder with the features you requested: %s. Do you need to install a parser library? N/A N/A , join features N/A builder N/A builder_class N/A N/A self builder builder N/A N/A self is_xml N/A builder is_xml N/A N/A N/A self builder soup self N/A N/A self parse_only parse_only N/A N/A N/A self reset N/A N/A hasattr markup read N/A N/A markup N/A N/A markup read N/A N/A N/A self markup N/A self original_encoding N/A self declared_html_encoding N/A self contains_replacement_characters N/A N/A N/A self builder prepare_markup markup from_encoding N/A N/A N/A N/A N/A self _feed N/A N/A N/A StopParsing N/A N/A N/A N/A self markup None N/A N/A N/A self builder soup None N/A _feed N/A N/A self N/A N/A N/A N/A N/A N/A self builder reset N/A N/A N/A N/A self builder feed N/A self markup N/A N/A N/A self endData N/A N/A N/A N/A self currentTag name N/A self ROOT_TAG_NAME N/A N/A N/A N/A self popTag N/A reset N/A N/A self N/A N/A N/A N/A N/A Tag __init__ self self N/A self builder N/A self ROOT_TAG_NAME N/A N/A self hidden 1 N/A N/A N/A N/A self builder reset N/A N/A self currentData N/A N/A N/A self currentTag None N/A N/A self tagStack N/A N/A N/A N/A self pushTag self N/A new_tag N/A N/A self name namespace nsprefix N/A None None attrs N/A N/A Create a new tag associated with this soup. N/A N/A Tag None N/A self builder name namespace nsprefix attrs N/A new_string N/A N/A self s N/A N/A N/A Create a new NavigableString associated with this soup. N/A navigable N/A NavigableString s N/A N/A N/A navigable setup N/A navigable N/A insert_before N/A N/A self successor N/A N/A N/A N/A ValueError BeautifulSoup objects don't support insert_before(). N/A insert_after N/A N/A self successor N/A N/A N/A N/A ValueError BeautifulSoup objects don't support insert_after(). N/A popTag N/A N/A self N/A N/A N/A tag N/A N/A N/A self tagStack pop N/A N/A self tagStack N/A N/A N/A self currentTag N/A N/A self tagStack N/A -1 N/A N/A self currentTag N/A pushTag N/A N/A self tag N/A N/A N/A N/A self currentTag N/A N/A N/A N/A N/A N/A self currentTag contents append tag N/A N/A N/A N/A self tagStack append tag N/A N/A self currentTag N/A N/A self tagStack N/A -1 N/A endData N/A N/A self containerClass N/A NavigableString N/A N/A N/A self currentData N/A N/A currentData N/A N/A join N/A self currentData N/A N/A N/A N/A N/A currentData translate N/A self STRIP_ASCII_SPACES N/A N/A N/A N/A set N/A N/A tag name N/A tag N/A self tagStack intersection N/A N/A self builder preserve_whitespace_tags N/A N/A N/A currentData N/A N/A currentData N/A N/A currentData N/A N/A self currentData N/A N/A N/A N/A self parse_only N/A N/A len N/A self tagStack 1 N/A N/A N/A N/A self parse_only text N/A N/A N/A N/A self parse_only search currentData N/A N/A N/A o N/A containerClass currentData N/A N/A N/A self object_was_parsed o N/A object_was_parsed N/A N/A self o N/A N/A N/A Add an object to the parse tree. N/A N/A N/A o setup N/A self currentTag N/A self previous_element N/A N/A self previous_element N/A N/A N/A N/A self previous_element next_element o N/A N/A self previous_element o N/A N/A N/A N/A N/A self currentTag contents append o N/A _popToTag N/A N/A self name nsprefix inclusivePop N/A None True N/A N/A Pops the tag stack up to and including the most recent
        instance of the given tag. If inclusivePop is false, pops the tag
        stack up to but *not* including the most recent instqance of
        the given tag. N/A N/A name N/A self ROOT_TAG_NAME N/A N/A N/A numPops 0 N/A mostRecentTag None N/A i N/A range N/A N/A len N/A self tagStack 1 0 -1 N/A N/A N/A N/A name N/A N/A N/A self tagStack N/A i name N/A nsprefix N/A N/A N/A self tagStack N/A i nsprefix nsprefix N/A N/A numPops N/A N/A len N/A self tagStack i N/A N/A N/A inclusivePop N/A N/A numPops N/A numPops 1 N/A i N/A range 0 numPops N/A N/A mostRecentTag N/A N/A self popTag N/A mostRecentTag N/A handle_starttag N/A N/A self name namespace nsprefix attrs N/A N/A N/A Push a start tag on to the stack.

        If this method returns None, the tag was rejected by the
        SoupStrainer. You should proceed as if the tag had not occured
        in the document. For instance, if this was a self-closing tag,
        don't call handle_endtag.
         N/A N/A N/A self endData N/A N/A N/A self parse_only N/A N/A len N/A self tagStack 1 N/A N/A N/A self parse_only text N/A N/A N/A N/A self parse_only search_tag name attrs N/A N/A None N/A tag N/A Tag self N/A self builder name namespace nsprefix attrs N/A self currentTag N/A self previous_element N/A N/A tag None N/A N/A tag N/A N/A self previous_element N/A N/A N/A N/A self previous_element next_element tag N/A N/A self previous_element tag N/A N/A N/A self pushTag tag N/A tag N/A handle_endtag N/A N/A self name nsprefix N/A None N/A N/A N/A N/A self endData N/A N/A N/A self _popToTag name nsprefix N/A handle_data N/A N/A self data N/A N/A N/A N/A N/A N/A self currentData append data N/A decode N/A N/A self pretty_print eventual_encoding formatter N/A False DEFAULT_OUTPUT_ENCODING minimal N/A N/A Returns a string or Unicode representation of this document.
        To get Unicode, pass None for encoding. N/A N/A self is_xml N/A N/A encoding_part N/A N/A eventual_encoding None N/A N/A encoding_part N/A  encoding="%s" eventual_encoding N/A prefix N/A <?xml version="1.0"%s?>
 encoding_part N/A N/A prefix N/A N/A pretty_print N/A N/A indent_level None N/A N/A indent_level 0 N/A N/A prefix N/A N/A N/A super BeautifulSoup self decode indent_level eventual_encoding formatter N/A N/A BeautifulStoneSoup N/A BeautifulSoup N/A N/A Deprecated interface to an XML parser. __init__ N/A N/A self N/A args kwargs N/A N/A N/A kwargs N/A features xml N/A N/A N/A warnings warn The BeautifulStoneSoup class is deprecated. Instead of using it, pass features="xml" into the BeautifulSoup constructor. N/A N/A N/A N/A super BeautifulStoneSoup self __init__ args kwargs N/A N/A StopParsing N/A Exception N/A N/A N/A N/A N/A __name__ __main__ N/A N/A sys N/A soup N/A BeautifulSoup N/A sys stdin N/A N/A N/A soup prettify