|
__init__(self,
markup='
' ,
parseOnlyThese=None,
fromEncoding=None,
markupMassage=True,
smartQuotesTo=' xml ' ,
convertEntities=None,
selfClosingTags=None,
isHTML=False,
builder=<class rosdeb.BeautifulSoup.HTMLParserBuilder at 0x20e55f0>)
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. |
source code
|
|
|
isSelfClosingTag(self,
name)
Returns true iff the given string is the name of a self-closing tag
according to this parser. |
source code
|
|
|
|
|
|
|
|
|
endData(self,
containerClass=<class 'rosdeb.BeautifulSoup.NavigableString'>) |
source code
|
|
|
unknown_starttag(self,
name,
attrs,
selfClosing=0) |
source code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
__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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|