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

Function get_body

scripts/add_feed_to_tiny.py:58–62  ·  view source on GitHub ↗
(tree: ET.ElementTree, path: Path)

Source from the content-addressed store, hash-verified

56
57
58def get_body(tree: ET.ElementTree, path: Path) -> ET.Element:
59 body = tree.getroot().find("body")
60 if body is None:
61 raise OpmlStructureError(f"{path} does not contain <body>")
62 return body
63
64
65def category_name(node: ET.Element) -> str:

Callers 2

add_feed_to_treeFunction · 0.70
mainFunction · 0.70

Calls 1

OpmlStructureErrorClass · 0.70

Tested by

no test coverage detected