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

Function fetch_openreview_papers

deployments/feishu/daily-push-agent/main.py:1244–1261  ·  view source on GitHub ↗
(fetch_days: int)

Source from the content-addressed store, hash-verified

1242
1243 for category_papers in results:
1244 papers.extend(category_papers)
1245 if category_papers:
1246 emit_fetched("arxiv", [{**paper, "source": "arxiv"} for paper in category_papers])
1247 for paper in papers:
1248 paper["source"] = "arxiv"
1249 print(f" Fetched {len(papers)} papers from arXiv")
1250 emit({"phase": "source_complete", "source": "arxiv", "count": len(papers)})
1251 return papers
1252
1253 def fetch_openreview_papers(fetch_days: int) -> List[Dict]:
1254 if not conferences:
1255 print("Skipping OpenReview fetch: no conferences selected")
1256 return []
1257 start_date = (today - timedelta(days=max(1, int(fetch_days or 1)) - 1)).strftime("%Y%m%d")
1258 print(f"Fetching from OpenReview (conferences: {conferences})...")
1259 papers = openreview_fetch_by_date(
1260 start_date=start_date,
1261 end_date=end_date,
1262 conferences=conferences,
1263 limit=limit_per_source
1264 ) or []

Callers 1

fetch_and_process_papersFunction · 0.85

Calls 2

emitFunction · 0.85
emit_fetchedFunction · 0.85

Tested by

no test coverage detected