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

Function collect_rss_urls

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

Source from the content-addressed store, hash-verified

291
292
293def collect_rss_urls(body: ET.Element) -> List[str]:
294 urls: List[str] = []
295 for _, rss in iter_rss_nodes(body):
296 url = normalize_url(rss.attrib.get("xmlUrl", ""))
297 if url:
298 urls.append(url)
299 return urls
300
301
302def load_health_state(path: Path) -> Dict[str, Dict[str, Any]]:

Callers 2

sync_tiny_to_fullFunction · 0.85
run_syncFunction · 0.85

Calls 2

iter_rss_nodesFunction · 0.70
normalize_urlFunction · 0.70

Tested by

no test coverage detected