xy-pubmed-pdf-downloader

Download PDFs from PubMed Central (PMC) and Europe PMC. Use when the user needs to download open-access academic papers from PubMed Central using PMC ID, PubMed URL, PMID, or DOI. Supports single download and batch download modes. Created by xuyuan0805.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "xy-pubmed-pdf-downloader" with this command: npx skills add xuyuan0805/xy-pubmed-pdf-downloader

XY PubMed PDF Downloader

下载 PubMed Central (PMC) 和 Europe PMC 开放获取论文的 PDF 文件。

功能

  • 支持多种输入格式:PMC ID、PubMed URL、DOI
  • 自动从 URL 中提取 PMC ID
  • DOI 自动转换为 PMC ID
  • 批量下载支持
  • 自动回退到 Europe PMC

使用方法

单文件下载

python3 scripts/download_pmc_pdf.py <identifier>

支持的 identifier 格式:

  • PMC ID: PMC1234567812345678
  • PubMed URL: https://pmc.ncbi.nlm.nih.gov/articles/PMC12345678/
  • DOI: 10.3389/fcvm.2024.1368022

批量下载

创建文本文件 pmc_list.txt,每行一个 ID:

PMC12345678
PMC87654321
10.3389/fcvm.2024.1368022
https://pmc.ncbi.nlm.nih.gov/articles/PMC56789012/

运行:

python3 scripts/download_pmc_pdf.py --batch pmc_list.txt

选项

  • -o, --output <dir>: 指定输出目录 (默认: ./downloads)
  • -f, --filename <name>: 自定义文件名
  • --batch <file>: 从文件批量下载

示例

# 下载单个 PDF
python3 scripts/download_pmc_pdf.py PMC12867338

# 指定输出目录
python3 scripts/download_pmc_pdf.py PMC12867338 -o ./papers

# 自定义文件名
python3 scripts/download_pmc_pdf.py PMC12867338 -f coronary_prediction.pdf

# 批量下载
python3 scripts/download_pmc_pdf.py --batch id_list.txt -o ./batch_downloads

注意事项

  1. 仅支持开放获取 (Open Access) 的文章
  2. 如果 PMC 下载失败,会自动尝试 Europe PMC
  3. 批量下载时默认有 1 秒延迟,避免对服务器造成压力
  4. 需要 requests 库:pip install requests

输出

下载的 PDF 文件保存在指定目录,默认命名格式:

  • PMC{ID}.pdf (如 PMC12867338.pdf)

错误处理

  • 404: 文章不存在或不是开放获取
  • DOI 转换失败: 该 DOI 没有对应的 PMC 记录
  • 其他网络错误会显示详细错误信息

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

Tradealpha Realtime News

Fetch realtime TradeAlpha news across Reuters, Bloomberg, Truth Social, research alerts, and domestic news sources via `POST /api/v1/news/realtime_news`. Use...

Registry SourceRecently Updated
Research

Polymarket Macro Asymmetric Longshot Trader

Systematically finds markets with huge asymmetric payoff -- markets priced at 2-10% where cross-category macro analysis suggests the REAL probability is 15-3...

Registry SourceRecently Updated
1510Profile unavailable
Research

Polymarket Science Milestones Trader

Trades Polymarket prediction markets on scientific breakthroughs, Nobel Prizes, physics discoveries, and research milestones. Corrects for systematic retail...

Registry SourceRecently Updated
2990Profile unavailable
Research

Max-Self-Improvement

MiniMax Agent self-evolution system with 5-layer memory for continuous learning, error analysis, and persistent personalized context management.

Registry SourceRecently Updated
00Profile unavailable