kr.motd.maven.sphinx.dist.bs4.__init__$py.class Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of sphinx-maven-plugin Show documentation
Show all versions of sphinx-maven-plugin Show documentation
Maven plugin that creates the site with Sphinx
???? 1? f$0 R(Lorg/python/core/PyFrame;Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; __doc__ HBeautiful 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 2.7 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/
org/python/core/PyString fromInterned .(Ljava/lang/String;)Lorg/python/core/PyString;
org/python/core/PyFrame
setglobal /(Ljava/lang/String;Lorg/python/core/PyObject;)V
setline (I)V
*Leonard Richardson ([email protected])
__author__ setlocal
4.6.0 __version__ *Copyright (c) 2004-2017 Leonard Richardson "
__copyright__ $ MIT & __license__ ( org/python/core/PyList * org/python/core/PyObject ,
BeautifulSoup . ([Lorg/python/core/PyObject;)V 0 1
+ 2 __all__ 4 os 6 org/python/core/imp 8 importOne H(Ljava/lang/String;Lorg/python/core/PyFrame;I)Lorg/python/core/PyObject; : ;
9 < re > traceback @ warnings B builder D java/lang/String F builder_registry H ParserRejectedMarkup J
importFrom \(Ljava/lang/String;[Ljava/lang/String;Lorg/python/core/PyFrame;I)[Lorg/python/core/PyObject; L M
9 N dammit P
UnicodeDammit R element T CData V Comment X DEFAULT_OUTPUT_ENCODING Z Declaration \ Doctype ^ NavigableString ` PageElement b ProcessingInstruction d ResultSet f SoupStrainer h Tag j `You are trying to run the Python 2 version of Beautiful Soup under Python 3. This will not work. l uYou need to convert the code, either by installing it (`python setup.py install`) or by running 2to3 (`2to3 -w bs4`). n _ne 6(Lorg/python/core/PyObject;)Lorg/python/core/PyObject; p q
- r getname .(Ljava/lang/String;)Lorg/python/core/PyObject; t u
v BeautifulSoup$1
__module__ y __name__ {
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
tag), call handle_starttag and then
handle_endtag.
}
[document] org/python/core/PyUnicode ? /(Ljava/lang/String;)Lorg/python/core/PyUnicode; ?
? ?
ROOT_TAG_NAME ? html ? fast ? DEFAULT_BUILDER_FEATURES ?
? ASCII_SPACES ?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, change code that looks like this:
BeautifulSoup(YOUR_MARKUP})
to this:
BeautifulSoup(YOUR_MARKUP, "%(parser)s")
? NO_PARSER_SPECIFIED_WARNING ? ? None ? org/python/core/PyFunction ? f_globals Lorg/python/core/PyObject; ? ? ?
__init__$2 to_cell (II)V ? ?
? ?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. ? convertEntities ? getderef (I)Lorg/python/core/PyObject; ? ?
? _in ? q
- ? __nonzero__ ()Z ? ?
- ? getglobal ? u
? warn ? __getattr__ ? u
- ? ?BS4 does not respect the convertEntities argument to the BeautifulSoup constructor. Entities are always converted to Unicode characters. ? __call__ S(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ? ?
- ?
markupMassage ? __delitem__ (Lorg/python/core/PyObject;)V ? ?
- ? ?BS4 does not respect the markupMassage argument to the BeautifulSoup constructor. The tree builder is responsible for any necessary markup massage. ?
smartQuotesTo ? ?BS4 does not respect the smartQuotesTo argument to the BeautifulSoup constructor. Smart quotes are always converted to Unicode characters. ? selfClosingTags ? ?BS4 does not respect the selfClosingTags argument to the BeautifulSoup constructor. The tree builder is responsible for understanding self-closing tags. ? isHTML ? ?BS4 does not respect the isHTML argument to the BeautifulSoup constructor. Suggest you use features='lxml' for HTML and features='lxml-xml' for XML. ? org/python/core/Py ? EmptyObjects [Lorg/python/core/PyObject; ? ? ? ? deprecated_argument$3 getlocal ? ?
? LThe "%s" argument to the BeautifulSoup constructor has been renamed to "%s." ? org/python/core/PyTuple ?
? 2 _mod ? q
- ? __getitem__ ? q
- ? (ILorg/python/core/PyObject;)V ?
? f_lasti I ? ? ? bs4$py ? Lorg/python/core/PyCode; ? ? ? ?
getclosure ? ?
? ?(Lorg/python/core/PyObject;[Lorg/python/core/PyObject;Lorg/python/core/PyCode;Lorg/python/core/PyObject;[Lorg/python/core/PyObject;)V 0 ?
? ? parseOnlyThese ?
parse_only ? m(Lorg/python/core/ThreadState;Lorg/python/core/PyObject;Lorg/python/core/PyObject;)Lorg/python/core/PyObject; ?
- fromEncoding
from_encoding
isinstance unicode
lYou provided Unicode markup but also provided a value for from_encoding. Your from_encoding will be ignored. len
newInteger (I)Lorg/python/core/PyInteger;
? _gt q
- keys 9(Lorg/python/core/ThreadState;)Lorg/python/core/PyObject; ?
- pop TypeError 2__init__() got an unexpected keyword argument '%s'
makeException 9(Lorg/python/core/PyObject;)Lorg/python/core/PyException;"#
?$ _is&