|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__getitem__(self,
key)
tag[key] returns the value of the 'key' attribute for the tag, and
throws an exception if it's not there.
(Inherited from rosdeb.BeautifulSoup.Tag) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
decode(self,
prettyPrint=False,
indentLevel=0,
eventualEncoding=DEFAULT_OUTPUT_ENCODING)
Returns a string or Unicode representation of this tag and its
contents.
(Inherited from rosdeb.BeautifulSoup.Tag) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fetchNextSiblings(self,
name=None,
attrs={},
text=None,
limit=None,
**kwargs)
Returns the siblings of this Tag that match the given criteria and
appear after this Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
|
|
|
fetchPrevious(self,
name=None,
attrs={},
text=None,
limit=None,
**kwargs)
Returns all items that match the given criteria and appear before
this Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
fetchPreviousSiblings(self,
name=None,
attrs={},
text=None,
limit=None,
**kwargs)
Returns the siblings of this Tag that match the given criteria and
appear before this Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
|
|
|
find(self,
name=None,
attrs={},
recursive=True,
text=None,
**kwargs)
Return only the first child of this Tag matching the given criteria.
(Inherited from rosdeb.BeautifulSoup.Tag) |
source code
|
|
|
|
|
|
|
findAllNext(self,
name=None,
attrs={},
text=None,
limit=None,
**kwargs)
Returns all items that match the given criteria and appear after this
Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
findAllPrevious(self,
name=None,
attrs={},
text=None,
limit=None,
**kwargs)
Returns all items that match the given criteria and appear before
this Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
findChild(self,
name=None,
attrs={},
recursive=True,
text=None,
**kwargs)
Return only the first child of this Tag matching the given criteria.
(Inherited from rosdeb.BeautifulSoup.Tag) |
source code
|
|
|
|
|
|
|
findNext(self,
name=None,
attrs={},
text=None,
**kwargs)
Returns the first item that matches the given criteria and appears
after this Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
findNextSibling(self,
name=None,
attrs={},
text=None,
**kwargs)
Returns the closest sibling to this Tag that matches the given
criteria and appears after this Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
findNextSiblings(self,
name=None,
attrs={},
text=None,
limit=None,
**kwargs)
Returns the siblings of this Tag that match the given criteria and
appear after this Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
|
|
|
|
|
|
findPrevious(self,
name=None,
attrs={},
text=None,
**kwargs)
Returns the first item that matches the given criteria and appears
before this Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
findPreviousSibling(self,
name=None,
attrs={},
text=None,
**kwargs)
Returns the closest sibling to this Tag that matches the given
criteria and appears before this Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
findPreviousSiblings(self,
name=None,
attrs={},
text=None,
limit=None,
**kwargs)
Returns the siblings of this Tag that match the given criteria and
appear before this Tag in the document.
(Inherited from rosdeb.BeautifulSoup.PageElement) |
source code
|
|
|
|
first(self,
name=None,
attrs={},
recursive=True,
text=None,
**kwargs)
Return only the first child of this Tag matching the given criteria.
(Inherited from rosdeb.BeautifulSoup.Tag) |
source code
|
|
|
|
|
|
|
get(self,
key,
default=None)
Returns the value of the 'key' attribute for the tag, or the value
given for 'default' if it doesn't have that attribute.
(Inherited from rosdeb.BeautifulSoup.Tag) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ALL_ENTITIES = "xhtml"
(Inherited from rosdeb.BeautifulSoup.BeautifulStoneSoup)
|
|
|
BARE_AMPERSAND_OR_BRACKET = re.compile("([<>]|"+ "&(?!#\d+;|#x...
(Inherited from rosdeb.BeautifulSoup.Tag)
|
|
|
CHARSET_RE = re.compile("((^|;)\s*charset=)([^;]*)", re.M)
(Inherited from rosdeb.BeautifulSoup.BeautifulSoup)
|
|
|
HTML_ENTITIES = "html"
(Inherited from rosdeb.BeautifulSoup.BeautifulStoneSoup)
|
|
|
I_CANT_BELIEVE_THEYRE_NESTABLE_BLOCK_TAGS = ['noscript']
(Inherited from rosdeb.BeautifulSoup.ICantBelieveItsBeautifulSoup)
|
|
|
I_CANT_BELIEVE_THEYRE_NESTABLE_INLINE_TAGS = ['em', 'big', 'i'...
(Inherited from rosdeb.BeautifulSoup.ICantBelieveItsBeautifulSoup)
|
|
|
MARKUP_MASSAGE = [(re.compile('(<[^<>]*)/>'), lambda x: x.grou...
(Inherited from rosdeb.BeautifulSoup.BeautifulStoneSoup)
|
|
|
NESTABLE_BLOCK_TAGS = ['blockquote', 'div', 'fieldset', 'ins',...
(Inherited from rosdeb.BeautifulSoup.BeautifulSoup)
|
|
|
NESTABLE_INLINE_TAGS = ['span', 'font', 'q', 'object', 'bdo', ...
(Inherited from rosdeb.BeautifulSoup.BeautifulSoup)
|
|
|
NESTABLE_LIST_TAGS = {'ol': [], 'ul': [], 'li': ['ul', 'ol'], ...
(Inherited from rosdeb.BeautifulSoup.BeautifulSoup)
|
|
|
NESTABLE_TABLE_TAGS = {'table': [], 'tr': ['table', 'tbody', '...
(Inherited from rosdeb.BeautifulSoup.BeautifulSoup)
|
|
|
NESTABLE_TAGS = buildTagMap([], BeautifulSoup.NESTABLE_TAGS, I...
(Inherited from rosdeb.BeautifulSoup.ICantBelieveItsBeautifulSoup)
|
|
|
NON_NESTABLE_BLOCK_TAGS = ['address', 'form', 'p', 'pre']
(Inherited from rosdeb.BeautifulSoup.BeautifulSoup)
|
|
|
PRESERVE_WHITESPACE_TAGS = set(['pre', 'textarea'])
(Inherited from rosdeb.BeautifulSoup.BeautifulSoup)
|
|
|
QUOTE_TAGS = {'script': None, 'textarea': None}
(Inherited from rosdeb.BeautifulSoup.BeautifulSoup)
|
|
|
RESET_NESTING_TAGS = buildTagMap(None, NESTABLE_BLOCK_TAGS, 'n...
(Inherited from rosdeb.BeautifulSoup.BeautifulSoup)
|
|
|
ROOT_TAG_NAME = u'[document]'
(Inherited from rosdeb.BeautifulSoup.BeautifulStoneSoup)
|
|
|
SELF_CLOSING_TAGS = buildTagMap(None, ['br', 'hr', 'input', 'i...
(Inherited from rosdeb.BeautifulSoup.BeautifulSoup)
|
|
|
STRIP_ASCII_SPACES = {9: None, 10: None, 12: None, 13: None, 3...
(Inherited from rosdeb.BeautifulSoup.BeautifulStoneSoup)
|
|
|
XHTML_ENTITIES = "xhtml"
(Inherited from rosdeb.BeautifulSoup.BeautifulStoneSoup)
|
|
|
XML_ENTITIES = "xml"
(Inherited from rosdeb.BeautifulSoup.BeautifulStoneSoup)
|
|
|
XML_ENTITIES_TO_SPECIAL_CHARS = {"apos": "'", "quot": '"', "am...
(Inherited from rosdeb.BeautifulSoup.Tag)
|
|
|
XML_SPECIAL_CHARS_TO_ENTITIES = _invert(XML_ENTITIES_TO_SPECIA...
(Inherited from rosdeb.BeautifulSoup.Tag)
|