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

Method _extract_location_text

IntelOSINT.py:15761–15771  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

15759 candidate_name = uname_norm
15760
15761 def _extract_location_text(value):
15762 if isinstance(value, dict):
15763 for key in ("city", "city_name", "town", "state", "country", "location", "name", "full", "formatted", "address", "value", "text"):
15764 txt = _extract_text_scalar(value.get(key))
15765 if txt and txt.lower() != "n/a":
15766 return txt
15767 for v in ("city", "city_name", "state", "country"):
15768 vv = value.get(v)
15769 if vv:
15770 return str(vv)
15771 return _extract_text_scalar(value)
15772
15773 def _strip_html(raw):
15774 if not isinstance(raw, str):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected