Repository navigation
📄 Paper Harvester (sci-extract Mode 3)
The Paper Harvester fetches papers from academic databases and writes them as agent-readable markdown with embedded figures.
Paper Harvester 从学术数据库抓取论文,输出为 AI 可读的 markdown 格式(含内嵌图片)。
New in v1.8:/v1.8 新功能:
-
Multi-source PDF fallthrough: tries publisher OA URL, PMC S3 bucket, EuropePMC, arXiv in order until a valid PDF is confirmed
-
多源 PDF 候选回退:按优先级依次尝试出版商 OA 链接、PMC S3 桶、EuropePMC、arXiv,直到确认有效 PDF
-
Extraction status badges: every
raw.mddisplays a capture status after the title (full text with figures / full text with PDF-cropped figures / full text without figures / figures skipped / metadata only) -
提取状态标记:每篇
raw.md标题后显示抓取状态(全文+图片 / 全文+PDF截图 / 全文无图 / 图片已跳过 / 仅元数据) -
Degraded capture handling: when full text is unavailable, writes structured sections (Captured / Missing / Sources attempted / How to obtain) instead of leaving a blank
-
降级抓取:全文不可用时,结构化输出已抓取内容、缺失部分、已尝试数据源、获取方式建议
-
Stale file protection: clears orphan figures from prior runs; detects outdated
analysis.md -
陈旧文件保护:重新运行时清除旧图片;检测过期的
analysis.md并警告 -
Resilient HTTP: fast-fail on quota exhaustion (OpenAlex daily credits), XXE/billion-laughs blocking, path traversal protection, credential scrubbing
-
弹性 HTTP 层:配额耗尽快速失败(应对 OpenAlex 每日信用模型)、XXE 防护、路径遍历拦截、凭证脱敏
-
Elsevier full text: supports
ELSEVIER_INSTTOKENfor non-OA article retrieval via institutional token -
Elsevier 全文:支持
ELSEVIER_INSTTOKEN获取非 OA 文章全文(需机构 token)
# Harvest by DOI/通过 DOI 抓取
python skills/sci-extract/harvest_paper.py 10.1016/j.mattod.2017.11.002
# Batch harvest from a file/批量抓取
python skills/sci-extract/harvest_paper.py --batch dois.txt --output-dir ./papers
# Skip figures for lightweight metadata harvest/仅抓取元数据,跳过图片
python skills/sci-extract/harvest_paper.py 10.1038/nmat3173 --skip-figures