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

Method findPrevious

pattern/web/soup/BeautifulSoup.py:293–296  ·  view source on GitHub ↗

Returns the first item that matches the given criteria and appears before this Tag in the document.

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

Source from the content-addressed store, hash-verified

291 fetchNextSiblings = findNextSiblings # Compatibility with pre-3.x
292
293 def findPrevious(self, name=None, attrs={}, text=None, **kwargs):
294 """Returns the first item that matches the given criteria and
295 appears before this Tag in the document."""
296 return self._findOne(self.findAllPrevious, name, attrs, text, **kwargs)
297
298 def findAllPrevious(self, name=None, attrs={}, text=None, limit=None,
299 **kwargs):

Callers 2

testPreviousMethod · 0.80
testPreviousSiblingMethod · 0.80

Calls 1

_findOneMethod · 0.95

Tested by 2

testPreviousMethod · 0.64
testPreviousSiblingMethod · 0.64