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

Function top_level_categories

scripts/opml_sync.py:427–432  ·  view source on GitHub ↗
(body: ET.Element)

Source from the content-addressed store, hash-verified

425
426
427def top_level_categories(body: ET.Element) -> List[ET.Element]:
428 return [
429 child
430 for child in list(body)
431 if child.tag == "outline" and not is_rss_outline(child)
432 ]
433
434
435def category_name(outline: ET.Element) -> str:

Callers 1

build_category_mapFunction · 0.85

Calls 1

is_rss_outlineFunction · 0.70

Tested by

no test coverage detected