MCPcopy Index your code
hub / github.com/clips/pattern / parse

Method parse

pattern/web/__init__.py:3061–3071  ·  view source on GitHub ↗

Returns a list of Links parsed from the given HTML string.

(self, html, url="")

Source from the content-addressed store, hash-verified

3059 HTMLParser.__init__(self)
3060
3061 def parse(self, html, url=""):
3062 """ Returns a list of Links parsed from the given HTML string.
3063 """
3064 if html is None:
3065 return None
3066 self._url = url
3067 self._data = []
3068 self.feed(self.clean(html))
3069 self.close()
3070 self.reset()
3071 return self._data
3072
3073 def handle_starttag(self, tag, attributes):
3074 if tag == "a":

Callers

nothing calls this directly

Calls 4

feedMethod · 0.45
cleanMethod · 0.45
closeMethod · 0.45
resetMethod · 0.45

Tested by

no test coverage detected