Package CHEM :: Package DB :: Package rdb :: Module BeautifulSoup :: Class PageElement
[hide private]
[frames] | no frames]

Class PageElement



Known Subclasses:
Tag, NavigableString

Contains the navigational information for some part of the page (either a tag or a piece of text)

Instance Methods [hide private]
 
setup(self, parent=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., previous=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence...)
Sets up the initial relations between this element and other elements.
 
replaceWith(self, replaceWith)
 
extract(self)
Destructively rips this element out of the tree.
 
_lastRecursiveChild(self)
Finds the last element beneath this object to be parsed.
 
insert(self, position, newChild)
 
findNext(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns the first item that matches the given criteria and appears after this Tag in the document.
 
findAllNext(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., limit=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns all items that match the given criteria and appear before after Tag in the document.
 
findNextSibling(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns the closest sibling to this Tag that matches the given criteria and appears after this Tag in the document.
 
findNextSiblings(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., limit=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns the siblings of this Tag that match the given criteria and appear after this Tag in the document.
 
fetchNextSiblings(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., limit=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns the siblings of this Tag that match the given criteria and appear after this Tag in the document.
 
findPrevious(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns the first item that matches the given criteria and appears before this Tag in the document.
 
findAllPrevious(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., limit=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns all items that match the given criteria and appear before this Tag in the document.
 
fetchPrevious(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., limit=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns all items that match the given criteria and appear before this Tag in the document.
 
findPreviousSibling(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns the closest sibling to this Tag that matches the given criteria and appears before this Tag in the document.
 
findPreviousSiblings(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., limit=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns the siblings of this Tag that match the given criteria and appear before this Tag in the document.
 
fetchPreviousSiblings(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, text=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., limit=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns the siblings of this Tag that match the given criteria and appear before this Tag in the document.
 
findParent(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, **kwargs)
Returns the closest parent of this Tag that matches the given criteria.
 
findParents(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, limit=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns the parents of this Tag that match the given criteria.
 
fetchParents(self, name=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., attrs={}, limit=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence..., **kwargs)
Returns the parents of this Tag that match the given criteria.
 
_findOne(self, method, name, attrs, text, **kwargs)
 
_findAll(self, name, attrs, text, limit, generator, **kwargs)
Iterates over a generator looking for things that match.
 
nextGenerator(self)
 
nextSiblingGenerator(self)
 
previousGenerator(self)
 
previousSiblingGenerator(self)
 
parentGenerator(self)
 
substituteEncoding(self, str, encoding=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence...)
 
toEncoding(self, s, encoding=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence...)
Encodes an object to a string in some encoding, or to Unicode.
Method Details [hide private]

toEncoding(self, s, encoding=<CHEM.DB.rdb.search.NameRxnPatternMatchingModel.SearchSentence...)

 
Encodes an object to a string in some encoding, or to Unicode. .