MCPcopy Create free account
hub / github.com/CScorza/IntelOSINT / _append_candidate

Method _append_candidate

IntelOSINT.py:15819–15834  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

15817 seen = set()
15818
15819 def _append_candidate(v):
15820 if not v:
15821 return
15822 if isinstance(v, str):
15823 v = v.strip()
15824 if v.lower().startswith(("http://", "https://")) and v not in seen:
15825 seen.add(v)
15826 out.append(v)
15827 return
15828 if isinstance(v, dict):
15829 for item in v.values():
15830 _append_candidate(item)
15831 return
15832 if isinstance(v, (list, tuple, set)):
15833 for item in v:
15834 _append_candidate(item)
15835
15836 for key in (
15837 "website", "page", "url", "externalUrl", "external_url", "wishlist", "wishList",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected