MCPcopy Create free account
hub / github.com/OpenRaiser/PaperFlow / _xml_text

Function _xml_text

deployments/feishu/daily-push-agent/main.py:154–166  ·  view source on GitHub ↗
(node: ET.Element, *paths: str)

Source from the content-addressed store, hash-verified

152def _xml_text(node: ET.Element, *paths: str) -> str:
153 namespaces = {
154 "atom": "http://www.w3.org/2005/Atom",
155 "dc": "http://purl.org/dc/elements/1.1/",
156 }
157 for path in paths:
158 try:
159 found = node.find(path, namespaces)
160 except SyntaxError:
161 found = None
162 if found is not None and found.text:
163 return found.text.strip()
164 return ""
165
166
167def fetch_custom_rss_papers(urls: List[str], limit_per_source: int) -> List[Dict]:
168 """Fetch user-configured RSS/Atom sources for the desktop offline GUI."""
169 if not urls:

Callers 1

fetch_one_feedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected