download_pdfs
Download open-access PubMed PDFs by PMID (up to 50), saving each as PMID.pdf while skipping paywalled papers and rejecting non-PDF pages.
Instructions
Download open-access PDFs for the given PMIDs (max 50) as PMID.pdf. Paywalled papers are skipped, never bypassed.
folder: absolute path, or a sub-folder name under PUBMED_PDF_DIR (default ~/pubmed_pdfs). Every file is verified to be a real PDF (starts with %PDF); HTML login/bot-check pages are rejected and reported as failed.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| pmids | Yes | ||
| folder | No |