MCPcopy
hub / github.com/psf/requests-html / gen

Method gen

requests_html.py:294–302  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

292 """All found links on page, in as–is form."""
293
294 def gen():
295 for link in self.find('a'):
296
297 try:
298 href = link.attrs['href'].strip()
299 if href and not (href.startswith('#') and self.skip_anchors) and not href.startswith(('javascript:', 'mailto:')):
300 yield href
301 except KeyError:
302 pass
303
304 return set(gen())
305

Callers

nothing calls this directly

Calls 2

findMethod · 0.95
_make_absoluteMethod · 0.95

Tested by

no test coverage detected