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

Function iter_rss_nodes

scripts/add_feed_to_tiny.py:80–87  ·  view source on GitHub ↗
(parent: ET.Element)

Source from the content-addressed store, hash-verified

78
79
80def iter_rss_nodes(parent: ET.Element) -> Iterable[Tuple[ET.Element, ET.Element]]:
81 for child in list(parent):
82 if child.tag != "outline":
83 continue
84 if is_rss_outline(child):
85 yield parent, child
86 continue
87 yield from iter_rss_nodes(child)
88
89
90def build_category_map(body: ET.Element) -> Dict[str, ET.Element]:

Callers 2

find_existing_feed_nodeFunction · 0.70

Calls 1

is_rss_outlineFunction · 0.70

Tested by

no test coverage detected