PaperChaser
A Python tool for extracting and downloading academic paper references. Supports both single and two-column PDF formats.
Features
- Extract references from PDF files with support for:
- Single and two-column layouts
- Multiple reference formats (numbered, bracketed, author-year)
- Smart reference section detection
- Download papers using:
- DOI lookup
- Title-based search
- Multiple sources, tried in order: open access (PMC Open Access Subset, Unpaywall, arXiv), then the publisher via your own subscription access, then Sci-Hub
- Per-source failure reasons for every paper that could not be fetched
- Automatic PDF renaming with metadata
- Beautiful command-line interface with:
- Progress bars
- Colored status indicators
- Formatted tables
- Detailed error reporting
Installation
pip install paperchaser
Usage
Basic usage:
# Extract and download references from a PDF
paperchaser path/to/paper.pdf
# Extract references without downloading (debug mode)
paperchaser path/to/paper.pdf --debug
# Specify output directory
paperchaser path/to/paper.pdf -o downloaded_papers
# Force re-download of existing papers
paperchaser path/to/paper.pdf -f
# Download one or more DOIs directly (bare DOI, doi: prefix or doi.org URL)
paperchaser 10.1056/NEJMoa2001017 https://doi.org/10.1038/s41586-020-2012-7
# Download from a text file with one DOI per line (blank lines and # comments ignored)
paperchaser dois.txt
paperchaser --doi-file dois.txt
# Read DOIs from stdin
cat dois.txt | paperchaser -
# Mix inputs freely; duplicates are removed
paperchaser paper.pdf dois.txt -d 10.1126/science.abb3221
Institutional (subscription) access
Requests go out from the machine you run this on, so if your institution grants access by IP, running on campus or on the VPN is enough: the DOI is resolved to the publisher's landing page, the full-text PDF link is read off it, and the PDF is fetched over that same session.
If your library needs a login rather than just an IP, point --proxy-prefix
at your proxy. Both EZproxy styles work:
# URL-prefix style (a {url} placeholder percent-encodes the target)
paperchaser paper.pdf --proxy-prefix 'https://ucsf.idm.oclc.org/login?url='
# Hostname-rewriting style
paperchaser paper.pdf --proxy-prefix '.ucsf.idm.oclc.org'
For proxies or publishers that need an authenticated session (OpenAthens,
Shibboleth, Cloudflare-protected sites), export cookies.txt from a browser
you are already logged into and pass it; cookies persist across the whole run:
paperchaser paper.pdf --proxy-prefix '.ucsf.idm.oclc.org' --cookies cookies.txt
Use --no-scihub to stop at legitimate sources. Publishers that render the
PDF link only via JavaScript, or that sit behind a bot check (ScienceDirect's
linkinghub.elsevier.com is the usual one), will still fail; the run reports
which step failed for each paper.
Open access sources
--email is required for the Unpaywall lookup, which rejects calls that do not
carry a real address. Without it that source is skipped and the run says so.
PMC full text comes from the PMC Cloud Service open-data bucket, which covers
the PMC Open Access Subset. PMC's own /articles/<id>/pdf URL is not used: it
now answers scripted requests with a CAPTCHA, and the OA Web Service
(oa.fcgi) it replaced has been retired.
Advanced options:
Usage: paperchaser [OPTIONS] [INPUTS]...
Options:
-d, --doi TEXT DOI to download (repeatable)
-i, --doi-file FILE Text file with one DOI per line (repeatable)
-o, --output-dir TEXT Directory to save downloaded papers
--email TEXT Your address, required for the Unpaywall lookup
--proxy-prefix TEXT Institutional proxy: URL prefix or EZproxy host suffix
--cookies FILE Netscape cookies.txt from a logged-in browser
--scihub/--no-scihub Fall back to Sci-Hub (default: True)
-f, --force Force download even if paper already exists
--rename/--no-rename Rename downloaded PDFs using metadata (default: True)
--debug Show debug information without downloading
--help Show this message and exit
Output Format
The tool provides detailed information about the extraction and download process:
- Reference extraction progress
- Found references with numbering
- Download status for each paper
- Color-coded success/failure indicators
- Detailed error messages for failed downloads
Metadata
Release files for paperchaser 0.2.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| paperchaser-0.2.0.tar.gz | 16.6 kB | Without provenance | Details for paperchaser-0.2.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| paperchaser-0.2.0-py3-none-any.whl | Python 3 | none | any | Details for paperchaser-0.2.0-py3-none-any.whl |
Total release size: 32.5 kB
Release files / paperchaser-0.2.0.tar.gz
| Download URL | paperchaser-0.2.0.tar.gz |
|---|---|
| Size | 16.6 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
cb86df6b962e85cc3445bffffec87c0896b1f9cbcf1bcee0071b7477539bd173
|
|
BLAKE2b-256 checksum How to use checksums |
43e66cec40f0f0bf62b88df14c2498e6a9eaba09a26c5450b6a5ea37347338f4
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Release files / paperchaser-0.2.0-py3-none-any.whl
| Download URL | paperchaser-0.2.0-py3-none-any.whl |
|---|---|
| Size | 15.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
f1d2ec21274d2165e85e9845b57c102595b1963e9b66f67e6120449a09eb7fe2
|
|
BLAKE2b-256 checksum How to use checksums |
6c1e9604b87ec5e79d4f6edf6ec85857b1e3f24192e90aeb03e7848530699c3a
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.2
|
Security for paperchaser 0.2.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.