MCPcopy
hub / github.com/csev/py4e / find

Method find

code3/bs4/element.py:1233–1241  ·  view source on GitHub ↗

Return only the first child of this Tag matching the given criteria.

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

Source from the content-addressed store, hash-verified

1231 #Soup methods
1232
1233 def find(self, name=None, attrs={}, recursive=True, text=None,
1234 **kwargs):
1235 """Return only the first child of this Tag matching the given
1236 criteria."""
1237 r = None
1238 l = self.find_all(name, attrs, recursive, text, 1, **kwargs)
1239 if l:
1240 r = l[0]
1241 return r
1242 findChild = find
1243
1244 def find_all(self, name=None, attrs={}, recursive=True, text=None,

Callers 15

__getattr__Method · 0.95
test_insert_tagMethod · 0.95
lineLengthFunction · 0.45
skipAtomicFunction · 0.45
coordsCharFunction · 0.45
codemirror.jsFile · 0.45
copySharedMarkersFunction · 0.45
removeReadOnlyRangesFunction · 0.45
compareCollapsedMarkersFunction · 0.45
visualLineFunction · 0.45

Calls 1

find_allMethod · 0.95