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

Method findAllPrevious

pattern/web/soup/BeautifulSoup.py:298–303  ·  view source on GitHub ↗

Returns all items 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

296 return self._findOne(self.findAllPrevious, name, attrs, text, **kwargs)
297
298 def findAllPrevious(self, name=None, attrs={}, text=None, limit=None,
299 **kwargs):
300 """Returns all items that match the given criteria and appear
301 before this Tag in the document."""
302 return self._findAll(name, attrs, text, limit, self.previousGenerator,
303 **kwargs)
304 fetchPrevious = findAllPrevious # Compatibility with pre-3.x
305
306 def findPreviousSibling(self, name=None, attrs={}, text=None, **kwargs):

Callers 1

testPreviousMethod · 0.80

Calls 1

_findAllMethod · 0.95

Tested by 1

testPreviousMethod · 0.64