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

Method get

old/old-code/BeautifulSoup.py:576–580  ·  view source on GitHub ↗

Returns the value of the 'key' attribute for the tag, or the value given for 'default' if it doesn't have that attribute.

(self, key, default=None)

Source from the content-addressed store, hash-verified

574 text = property(getText)
575
576 def get(self, key, default=None):
577 """Returns the value of the 'key' attribute for the tag, or
578 the value given for 'default' if it doesn't have that
579 attribute."""
580 return self._getAttrMap().get(key, default)
581
582 def clear(self):
583 """Extract all children."""

Callers 15

wikigrade.pyFile · 0.45
urlwords.pyFile · 0.45
twitter4.pyFile · 0.45
urllinks.pyFile · 0.45
words.pyFile · 0.45
searchTagMethod · 0.45
_smartPopMethod · 0.45
handle_entityrefMethod · 0.45
_subMSCharMethod · 0.45
find_codecMethod · 0.45
urllink2.pyFile · 0.45
wsave.pyFile · 0.45

Calls 1

_getAttrMapMethod · 0.95

Tested by

no test coverage detected