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

Function _find_first_child

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

Source from the content-addressed store, hash-verified

129
130
131def _find_first_child(node: ET.Element, local_name: str) -> Optional[ET.Element]:
132 for child in list(node):
133 if strip_namespace(child.tag) == local_name:
134 return child
135 return None
136
137
138def _extract_atom_html_url(root: ET.Element) -> str:

Callers 1

parse_feed_metadataFunction · 0.85

Calls 1

strip_namespaceFunction · 0.70

Tested by

no test coverage detected