MCPcopy Create free account
hub / github.com/clips/pattern / findPreviousSiblings

Method findPreviousSiblings

pattern/web/soup/BeautifulSoup.py:312–317  ·  view source on GitHub ↗

Returns the siblings of this Tag that match the given criteria and appear before this Tag in the document.

(self, name=None, attrs={}, text=None,
                             limit=None, **kwargs)

Source from the content-addressed store, hash-verified

310 **kwargs)
311
312 def findPreviousSiblings(self, name=None, attrs={}, text=None,
313 limit=None, **kwargs):
314 """Returns the siblings of this Tag that match the given
315 criteria and appear before this Tag in the document."""
316 return self._findAll(name, attrs, text, limit,
317 self.previousSiblingGenerator, **kwargs)
318 fetchPreviousSiblings = findPreviousSiblings # Compatibility with pre-3.x
319
320 def findParent(self, name=None, attrs={}, **kwargs):

Callers 1

testPreviousSiblingMethod · 0.80

Calls 1

_findAllMethod · 0.95

Tested by 1

testPreviousSiblingMethod · 0.64