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

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

Callers 1

fetch_one_feedFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected