download_with_fallback
Download academic papers by attempting source-native access first, then open-access repositories, with optional Sci-Hub fallback when other methods fail.
Instructions
Try source-native download, OA repositories, Unpaywall, then optional Sci-Hub.
Args: source: Source name (arxiv, biorxiv, medrxiv, iacr, semantic, crossref, pubmed, pmc, core, europepmc, citeseerx, doaj, base, zenodo, hal, ssrn). paper_id: Source-native paper identifier. doi: Optional DOI used for repository/unpaywall/Sci-Hub fallback. title: Optional title used for repository/Sci-Hub fallback when DOI is unavailable. save_path: Directory to save downloaded files. use_scihub: Whether to fallback to Sci-Hub after OA attempts fail. scihub_base_url: Sci-Hub mirror URL for fallback. Returns: Download path on success or explanatory error message.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | ||
| paper_id | Yes | ||
| doi | No | ||
| title | No | ||
| save_path | No | ./downloads | |
| use_scihub | No | ||
| scihub_base_url | No | https://sci-hub.se |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |