zmc
2023-12-22 9fdbf60165db0400c2e8e6be2dc6e88138ac719a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
U
¡ý°d„ã@sbdZdZdZdZdZdgZddlmZddlZddl    Z    ddl
Z
ddl Z ddl Z e
j jd    krbed
ƒ‚d d lmZmZmZmZd d lmZd dlmZmZmZmZmZmZmZmZm Z m!Z!m"Z"m#Z#m$Z$m%Z%m&Z&m'Z'Gdd„de(ƒZ)Gdd„de(ƒZ*Gdd„de&ƒZ+e+Z,e+Z-Gdd„de+ƒZ.Gdd„de/ƒZ0Gdd„de1ƒZ2e3dkr^ddl
Z
e+e
j4ƒZ5e6e5 7¡ƒdS)aKBeautiful 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 methods and Pythonic idioms that make it easy to navigate,
search, and modify the parse tree.
 
Beautiful Soup works with Python 3.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/
z*Leonard Richardson (leonardr@segfault.org)z4.12.2z*Copyright (c) 2004-2023 Leonard RichardsonÚMITÚ BeautifulSoupé)ÚCounterNézªYou are trying to use a Python 3-specific version of Beautiful Soup under Python 2. This will not work. The final version of Beautiful Soup to support Python 2 was 4.9.3.é)Úbuilder_registryÚParserRejectedMarkupÚXMLParsedAsHTMLWarningÚHTMLParserTreeBuilder)Ú UnicodeDammit)ÚCDataÚCommentÚCSSÚDEFAULT_OUTPUT_ENCODINGÚ DeclarationÚDoctypeÚNavigableStringÚ PageElementÚProcessingInstructionÚPYTHON_SPECIFIC_ENCODINGSÚ    ResultSetÚScriptÚ
StylesheetÚ SoupStrainerÚTagÚTemplateStringc@seZdZdZdS)ÚGuessedAtParserWarningzŽThe warning issued when BeautifulSoup has to guess what parser to
    use -- probably because no parser was specified in the constructor.
    N©Ú__name__Ú
__module__Ú __qualname__Ú__doc__©r"r"úCd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\bs4/__init__.pyr@src@seZdZdZdS)ÚMarkupResemblesLocatorWarningz–The warning issued when BeautifulSoup is given 'markup' that
    actually looks like a resource locator -- a URL or a path to a file
    on disk.
    Nrr"r"r"r#r$Esr$cseZdZdZdZddgZdZdZd<d    d
„Zd d „Z    d d„Z
dd„Z e dd„ƒZ e dd„ƒZe dd„ƒZdd„Zdd„Zddiddfdd„Zd=dd„Zd>dd „Zd!d"„Zd#d$„Zd%d&„Zd'd(„Zd?d)d*„Zd@d+d,„Zd-d.„ZdAd0d1„ZdBd2d3„ZdCd4d5„Zd6d7„Zd8e d9df‡fd:d;„    Z!‡Z"S)DraµA data structure representing a parsed HTML or XML document.
 
    Most of the methods you'll call on a BeautifulSoup object are inherited from
    PageElement or Tag.
 
    Internally, this class defines the basic interface called by the
    tree builders when converting an HTML/XML document into a data
    structure. The interface abstracts away the differences between
    parsers. To write a new tree builder, you'll need to understand
    these methods as a whole.
 
    These methods will be called by the BeautifulSoup constructor:
      * 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) # 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.
    z
[document]ÚhtmlÚfastz 
     aíNo parser was explicitly specified, so I'm using the best available %(markup_type)s parser for this system ("%(parser)s"). This usually isn't a problem, but if you run this code on another system, or in a different virtual environment, it may use a different parser and behave differently.
 
The code that caused this warning is on line %(line_number)s of the file %(filename)s. To get rid of this warning, pass the additional argument 'features="%(parser)s"' to the BeautifulSoup constructor.
ÚNc s”dˆkrˆd=t d¡dˆkr0ˆd=t d¡dˆkrHˆd=t d¡dˆkr`ˆd=t d¡d    ˆkrxˆd    =t d
¡‡fd d „}    |p|    d dƒ}|pž|    ddƒ}|r¼t|tƒr¼t d¡d}|pÄtƒ|_|}
|} t|tƒrä|} d}n^|dkrBt|tƒrþ|g}|dkst|ƒdkr|j}t    j
|Ž} | dkrBt dd  |¡ƒ‚|dkr4| fˆŽ}|
sD| |j ksD| |jksD|rD|jrˆd} nd} d}zt d¡}Wntk
r´YnX|rÊ|j}|j}n
tj}d}| d¡}|r| ¡}| d¡r|dd…}|rDt|||j | d}tj|j|tddnˆrDt d¡||_|j|_|j|_tƒ|_||_t|d ƒr~|  ¡}nPt|ƒd!krÎt|t!ƒr¢d"|ks¸t|tƒrÎd#|krÎ| "|¡sÎ| #|¡g}d$}|jj$|||d%D]r\|_%|_&|_'|_(| )¡|j *|¡z| +¡d&}Wq\Wn.t,k
rV}z| -|¡W5d}~XYnXqè|s‚d'd(„|Dƒ}t,d)d*  |¡ƒ‚d|_%d|j_.dS)+a    Constructor.
 
        :param markup: A string or a file-like object representing
         markup to be parsed.
 
        :param features: Desirable features of the parser to be
         used. This may be the name of a specific parser ("lxml",
         "lxml-xml", "html.parser", or "html5lib") or it may be the
         type of markup to be used ("html", "html5", "xml"). It's
         recommended that you name a specific parser, so that
         Beautiful Soup gives you the same results across platforms
         and virtual environments.
 
        :param builder: A TreeBuilder subclass to instantiate (or
         instance to use) instead of looking one up based on
         `features`. You only need to use this if you've implemented a
         custom TreeBuilder.
 
        :param parse_only: A SoupStrainer. Only parts of the document
         matching the SoupStrainer will be considered. This is useful
         when parsing part of a document that would otherwise be too
         large to fit into memory.
 
        :param from_encoding: A string indicating the encoding of the
         document to be parsed. Pass this in if Beautiful Soup is
         guessing wrongly about the document's encoding.
 
        :param exclude_encodings: A list of strings indicating
         encodings known to be wrong. Pass this in if you don't know
         the document's encoding but you know Beautiful Soup's guess is
         wrong.
 
        :param element_classes: A dictionary mapping BeautifulSoup
         classes like Tag and NavigableString, to other classes you'd
         like to be instantiated instead as the parse tree is
         built. This is useful for subclassing Tag or NavigableString
         to modify default behavior.
 
        :param kwargs: For backwards compatibility purposes, the
         constructor accepts certain keyword arguments used in
         Beautiful Soup 3. None of these arguments do anything in
         Beautiful Soup 4; they will result in a warning and then be
         ignored.
         
         Apart from this, any keyword arguments passed into the
         BeautifulSoup constructor are propagated to the TreeBuilder
         constructor. This makes it possible to configure a
         TreeBuilder by passing in arguments, not just by saying which
         one to use.
        ZconvertEntitieszˆBS4 does not respect the convertEntities argument to the BeautifulSoup constructor. Entities are always converted to Unicode characters.Z markupMassagez“BS4 does not respect the markupMassage argument to the BeautifulSoup constructor. The tree builder is responsible for any necessary markup massage.Z smartQuotesTozŠBS4 does not respect the smartQuotesTo argument to the BeautifulSoup constructor. Smart quotes are always converted to Unicode characters.ZselfClosingTagsz˜BS4 does not respect the selfClosingTags argument to the BeautifulSoup constructor. The tree builder is responsible for understanding self-closing tags.ZisHTMLz”BS4 does not respect the isHTML argument to the BeautifulSoup constructor. Suggest you use features='lxml' for HTML and features='lxml-xml' for XML.cs.|ˆkr*tjd||ftddˆ |¡SdS)NzLThe "%s" argument to the BeautifulSoup constructor has been renamed to "%s."r©Ú
stacklevel)ÚwarningsÚwarnÚDeprecationWarningÚpop)Zold_nameÚnew_name©Úkwargsr"r#Údeprecated_argumentÓsÿý
z3BeautifulSoup.__init__.<locals>.deprecated_argumentZparseOnlyTheseÚ
parse_onlyZ fromEncodingÚ from_encodingzlYou provided Unicode markup but also provided a value for from_encoding. Your from_encoding will be ignored.NrzjCouldn't find a tree builder with the features you requested: %s. Do you need to install a parser library?ú,ÚXMLZHTMLrÚ__file__)z.pycz.pyoéÿÿÿÿ)ÚfilenameÚ line_numberÚparserÚ markup_typeér(z»Keyword arguments to the BeautifulSoup constructor will be ignored. These would normally be passed into the TreeBuilder constructor, but a TreeBuilder instance was passed in as `builder`.Úreadéó<ú<F)Úexclude_encodingsTcSsg|] }t|ƒ‘qSr")Ústr)Ú.0Úer"r"r#Ú
<listcomp>Wsz*BeautifulSoup.__init__.<locals>.<listcomp>z•The markup you provided was rejected by the parser. Trying a different parser or a different encoding may help.
 
Original exception(s) from parser:
 z
 )/r*r+Ú
isinstancerBÚdictÚelement_classesÚtypeÚlenÚDEFAULT_BUILDER_FEATURESrÚlookupÚFeatureNotFoundÚjoinÚNAMEZALTERNATE_NAMESÚis_xmlÚsysÚ    _getframeÚ
ValueErrorÚ    f_globalsÚf_linenoÚ__dict__ÚgetÚlowerÚendswithÚNO_PARSER_SPECIFIED_WARNINGrÚbuilderZ    known_xmlÚ _namespacesr2Úhasattrr=ÚbytesÚ_markup_is_urlÚ_markup_resembles_filenameZprepare_markupÚmarkupÚoriginal_encodingZdeclared_html_encodingZcontains_replacement_charactersÚresetZinitialize_soupÚ_feedrÚappendÚsoup)ÚselfraÚfeaturesr[r2r3rArHr0r1Zoriginal_builderZoriginal_featuresZ builder_classr;ZcallerÚglobalsr9r8ZfnlÚvaluesZ
rejectionsÚsuccessrDZother_exceptionsr"r/r#Ú__init__zs5ÿÿÿÿÿ
ÿÿ
 
 
 
 
 
þÿ
 
ÿþý
  üþ
 
ÿÿþþ 
ÿþ  
 ÿzBeautifulSoup.__init__cCst|ƒdd|jƒ}|j|_|S)zªCreate a new BeautifulSoup object with the same TreeBuilder,
        but not associated with any markup.
 
        This is the first step of the deepcopy process.
        r'N)rIr[rb)rgÚcloner"r"r#Ú_cloneaszBeautifulSoup._clonecCsZt|jƒ}d|kr4|ddk    r4|jjs4t|jƒ|d<g|d<| ¡|d<d|krV|d=|S)Nr[ÚcontentsraÚ_most_recent_element)rGrVr[Z    picklablerIÚdecode)rgÚdr"r"r#Ú __getstate__ns
 zBeautifulSoup.__getstate__cCsH||_t|jtƒr| ¡|_n|js,tƒ|_||j_| ¡| ¡|S©N)rVrFr[rIr
rfrcrd)rgÚstater"r"r#Ú __setstate__~s  zBeautifulSoup.__setstate__cCs t|tƒr| dd¡}n|}|S)z§Ensure `markup` is bytes so it's safe to send into warnings.warn.
 
        TODO: warnings.warn had this problem back in 2010 but it might not
        anymore.
        zutf-8Úreplace)rFr^rq)ÚclsraÚdecodedr"r"r#Ú_decode_markups
zBeautifulSoup._decode_markupcsbtˆtƒrd}d}ntˆtƒr(d}d}ndSt‡fdd„|Dƒƒr^|ˆkr^tjdtd    d
d SdS) zìError-handling method to raise a warning if incoming markup looks
        like a URL.
 
        :param markup: A string.
        :return: Whether or not the markup resembles a URL
            closely enough to justify a warning.
        ó )shttp:shttps:ú )zhttp:zhttps:Fc3s|]}ˆ |¡VqdSrt)Ú
startswith)rCÚprefix©rar"r#Ú    <genexpr>¬sz/BeautifulSoup._markup_is_url.<locals>.<genexpr>z«The input looks more like a URL than markup. You may want to use an HTTP client like requests to get the document behind the URL, and feed that document to Beautiful Soup.rr(T)rFr^rBÚanyr*r+r$)rxraÚspaceZcant_start_withr"rr#r_šs     
 
ûzBeautifulSoup._markup_is_urlcs’d}dddddg}tˆtƒr4| d¡}dd    „|Dƒ}d
}t‡fd d „|DƒƒrTd }n"ˆ ¡‰t‡fdd „|Dƒƒrvd }|rŽtjdtddd Sd
S)aError-handling method to raise a warning if incoming markup
        resembles a filename.
 
        :param markup: A bytestring or string.
        :return: Whether or not the markup resembles a filename
            closely enough to justify a warning.
        z/\z.htmlz.htmz.xmlz.xhtmlz.txtÚutf8cSsg|]}| d¡‘qS)rƒ)Úencode©rCÚxr"r"r#rEÅsz<BeautifulSoup._markup_resembles_filename.<locals>.<listcomp>Fc3s|]}|ˆkVqdSrtr"r…rr"r#r€Çsz;BeautifulSoup._markup_resembles_filename.<locals>.<genexpr>Tc3s|]}ˆ |¡VqdSrt)rY)rCÚext)rXr"r#r€Ësz}The input looks more like a filename than markup. You may want to open this file and pass the filehandle into Beautiful Soup.rr()rFr^r„rrXr*r+r$)rxraZpath_charactersÚ
extensionsZfileliker")rXrar#r`¸s&    
 
üz(BeautifulSoup._markup_resembles_filenamecCs<|j ¡|j |j¡| ¡|jj|jkr8| ¡q dS)zInternal method that parses previously set markup, creating a large
        number of Tag and NavigableString objects.
        N)    r[rcÚfeedraÚendDataÚ
currentTagÚnameÚ ROOT_TAG_NAMEÚpopTag©rgr"r"r#rd×s
 
zBeautifulSoup._feedcCs^t |||j|j¡d|_|j ¡g|_d|_g|_t    ƒ|_
g|_ g|_ d|_ | |¡dS)zWReset this object to a state as though it had never parsed any
        markup.
        rN)rrlr[rÚhiddenrcÚ current_datar‹ÚtagStackrÚopen_tag_counterÚpreserve_whitespace_tag_stackÚstring_container_stackrpÚpushTagrr"r"r#rcäs
zBeautifulSoup.resetc
Ks.| |¡|j tt¡d|j||||||dS)aCreate a new Tag associated with this BeautifulSoup object.
 
        :param name: The name of the new Tag.
        :param namespace: The URI of the new Tag's XML namespace, if any.
        :param prefix: The prefix for the new Tag's XML namespace, if any.
        :param attrs: A dictionary of this Tag's attribute values; can
            be used instead of `kwattrs` for attributes like 'class'
            that are reserved words in Python.
        :param sourceline: The line number where this tag was
            (purportedly) found in its source document.
        :param sourcepos: The character position within `sourceline` where this
            tag was (purportedly) found.
        :param kwattrs: Keyword arguments for the new Tag's attribute values.
 
        N)Ú
sourcelineÚ    sourcepos)ÚupdaterHrWrr[)rgrŒÚ    namespaceÚnsprefixÚattrsr—r˜Zkwattrsr"r"r#Únew_tagôs
 þzBeautifulSoup.new_tagcCs@|pt}|j ||¡}|jr<|tkr<|jj |jdj|¡}|S)Nr7)rrHrWr•r[Ústring_containersrŒ)rgZ
base_classÚ    containerr"r"r#Ústring_container sÿ
ÿzBeautifulSoup.string_containercCs| |¡}||ƒS)zXCreate a new NavigableString associated with this BeautifulSoup
        object.
        )r )rgÚsÚsubclassrŸr"r"r#Ú
new_strings
zBeautifulSoup.new_stringcGs tdƒ‚dS)ú¤This method is part of the PageElement API, but `BeautifulSoup` doesn't implement
        it because there is nothing before or after it in the parse tree.
        z4BeautifulSoup objects don't support insert_before().N©ÚNotImplementedError©rgÚargsr"r"r#Ú insert_before"szBeautifulSoup.insert_beforecGs tdƒ‚dS)r¤z3BeautifulSoup objects don't support insert_after().Nr¥r§r"r"r#Ú insert_after(szBeautifulSoup.insert_aftercCs~|j ¡}|j|jkr*|j|jd8<|jrH||jdkrH|j ¡|jrf||jdkrf|j ¡|jrx|jd|_|jS)z9Internal method called by _popToTag when a tag is closed.rr7)r’r-rŒr“r”r•r‹©rgÚtagr"r"r#rŽ.s
 
 
 zBeautifulSoup.popTagcCsˆ|jdk    r|jj |¡|j |¡|jd|_|j|jkrP|j|jd7<|j|jjkrj|j     |¡|j|jj
kr„|j  |¡dS)z?Internal method called by handle_starttag when a tag is opened.Nr7r) r‹rorer’rŒrr“r[Zpreserve_whitespace_tagsr”ržr•r«r"r"r#r–<s
    zBeautifulSoup.pushTagcCs |jrœd |j¡}|jsNd}|D]}||jkr d}q8q |rNd|krJd}nd}g|_|jr€t|jƒdkr€|jjr||j |¡s€dS|     |¡}||ƒ}| 
|¡dS)zXMethod called by the TreeBuilder when the end of a data segment
        occurs.
        r'TFÚ
r|rN) r‘rNr”Ú ASCII_SPACESr2rJr’ÚtextÚsearchr Úobject_was_parsed)rgZcontainerClassr‘Z
strippableÚiÚor"r"r#rŠJs, 
ÿ
þ
zBeautifulSoup.endDatac    Cs˜|dkr|j}|dk    r|}n|j}d}}}t|tƒrX|j}|j}|j}|dkrX|j}|jdk    }| |||||¡||_|j     
|¡|r”|  |¡dS)zLMethod called by the TreeBuilder to integrate an object into the parse tree.N) r‹rprFrÚ next_elementÚ next_siblingÚprevious_siblingÚprevious_elementÚsetuproreÚ_linkage_fixer)    rgr³ÚparentZmost_recent_elementr·r´r¶rµZfixr"r"r#r±ls$ 
 
 zBeautifulSoup.object_was_parsedcCs¼|jd}|jd}|}||krX|jdk    rX||_|j}|dk    rL||k    rLd|_||_d|_d|_t|tƒrx|jrx| d¡}d|_d|_|}|dkr”q¸n|jdk    r°|j|_||j_q¸|j}qˆdS)z,Make sure linkage of this fragment is sound.rr7NF)    rorºr´r·r¶rµrFrZ_last_descendant)rgÚelÚfirstÚchildZ
descendantZprev_elÚtargetr"r"r#r¹ˆs.
 
 
 
zBeautifulSoup._linkage_fixerTcCs|||jkrdSd}t|jƒ}t|dddƒD]J}|j |¡s@qx|j|}||jkrn||jkrn|rj| ¡}qx| ¡}q,|S)aàPops the tag stack up to and including the most recent
        instance of the given tag.
 
        If there are no open tags with the given name, nothing will be
        popped.
 
        :param name: Pop up to the most recent tag with this name.
        :param nsprefix: The namespace prefix that goes with `name`.
        :param inclusivePop: It this is false, pops the tag stack up
          to but *not* including the most recent instqance of the
          given tag.
 
        Nrrr7)    rrJr’Úranger“rWrŒr~rŽ)rgrŒr›Z inclusivePopZmost_recently_poppedÚ
stack_sizer²Útr"r"r#Ú    _popToTag°s
 
 
 
zBeautifulSoup._popToTagc     Cs–| ¡|jr6t|jƒdkr6|jjs2|j ||¡s6dS|j tt¡||j    |||||j
|j |||d }|dkrp|S|j dk    r‚||j _ ||_ |  |¡|S)aCalled by the tree builder when a new tag is encountered.
 
        :param name: Name of the tag.
        :param nsprefix: Namespace prefix for the tag.
        :param attrs: A dictionary of attribute values.
        :param sourceline: The line number where this tag was found in its
            source document.
        :param sourcepos: The character position within `sourceline` where this
            tag was found.
        :param namespaces: A dictionary of all namespace prefix mappings 
            currently in scope in the document.
 
        If this method returns None, the tag was rejected by an active
        SoupStrainer. You should proceed as if the tag had not occurred
        in the document. For instance, if this was a self-closing tag,
        don't call handle_endtag.
        rN)r—r˜Ú
namespaces)rŠr2rJr’r¯Z
search_tagrHrWrr[r‹rpr´r–)    rgrŒršr›rœr—r˜rÃr¬r"r"r#Úhandle_starttagÒs6ÿ þ ü
 
zBeautifulSoup.handle_starttagcCs| ¡| ||¡dS)z¤Called by the tree builder when an ending tag is encountered.
 
        :param name: Name of the tag.
        :param nsprefix: Namespace prefix for the tag.
        N)rŠrÂ)rgrŒr›r"r"r#Ú handle_endtagûszBeautifulSoup.handle_endtagcCs|j |¡dS)zGCalled by the tree builder when a chunk of textual data is encountered.N)r‘re)rgÚdatar"r"r#Ú handle_dataszBeautifulSoup.handle_dataFZminimalcs\|jr0d}|tkrd}|dkr&d|}d|}nd}|s>d}nd}|tt|ƒ ||||¡S)aoReturns a string or Unicode representation of the parse tree
            as an HTML or XML document.
 
        :param pretty_print: If this is True, indentation will be used to
            make the document more readable.
        :param eventual_encoding: The encoding of the final document.
            If this is None, the document will be a Unicode string.
        r'Nz encoding="%s"z<?xml version="1.0"%s?>
r)rPrÚsuperrrq)rgZ pretty_printZeventual_encodingÚ    formatterÚiteratorZ encoding_partr~Ú indent_level©Ú    __class__r"r#rq    s" 
 ÿzBeautifulSoup.decode)r'NNNNNN)N)N)N)NN)NT)NNN)N)#rrr r!rrKr®rZrlrnrsrvÚ classmethodrzr_r`rdrcrr r£r©rªrŽr–rŠr±r¹rÂrÄrÅrÇrrqÚ __classcell__r"r"rÌr#rLs`!þ
h 
 
 
 ÿ
 
 
 
"
(
"ÿ
)
 
þcs eZdZdZ‡fdd„Z‡ZS)ÚBeautifulStoneSoupz&Deprecated interface to an XML parser.cs.d|d<tjdtddtt|ƒj||ŽdS)NÚxmlrhzxThe BeautifulStoneSoup class is deprecated. Instead of using it, pass features="xml" into the BeautifulSoup constructor.r<r()r*r+r,rÈrÐrl)rgr¨r0rÌr"r#rl/sýzBeautifulStoneSoup.__init__)rrr r!rlrÏr"r"rÌr#rÐ,srÐc@seZdZdZdS)Ú StopParsingzEException raised by a TreeBuilder if it's unable to continue parsing.Nrr"r"r"r#rÒ9srÒc@seZdZdZdS)rMzmException raised by the BeautifulSoup constructor if no parser with the
    requested features is found.
    Nrr"r"r"r#rM=srMÚ__main__)8r!Ú
__author__Ú __version__Ú __copyright__Ú __license__Ú__all__Ú collectionsrÚosÚrerQÚ    tracebackr*Ú version_infoÚmajorÚ ImportErrorr[rrr    r
Zdammitr Úelementr r rrrrrrrrrrrrrrÚ UserWarningrr$rZ_sZ_souprÐÚ    ExceptionrÒrSrMrÚstdinrfÚprintZprettifyr"r"r"r#Ú<module>sB   Hb