MCPcopy
hub / github.com/zer0yu/CyberSecurityRSS / _find_text_child

Function _find_text_child

scripts/add_feed_to_tiny.py:121–128  ·  view source on GitHub ↗
(node: ET.Element, local_name: str)

Source from the content-addressed store, hash-verified

119
120
121def _find_text_child(node: ET.Element, local_name: str) -> str:
122 for child in list(node):
123 if strip_namespace(child.tag) != local_name:
124 continue
125 text = (child.text or "").strip()
126 if text:
127 return text
128 return ""
129
130
131def _find_first_child(node: ET.Element, local_name: str) -> Optional[ET.Element]:

Callers 1

parse_feed_metadataFunction · 0.85

Calls 1

strip_namespaceFunction · 0.70

Tested by

no test coverage detected